# Timeout waiting for the server to start up. This is different than the
# GDB timeout, which is how long GDB waits for commands to execute.
- # The server_timeout is how long this script waits for the Server to be ready
- # for GDB connections.
+ # The server_timeout is how long this script waits for the Server to be
+ # ready for GDB connections.
server_timeout_sec = 60
# Path to linker script relative to the .py file where the target is
if debug:
cmd.append("-d")
- logfile = Openocd.logfile
+ logfile = open(Openocd.logname, "w")
logfile.write("+ %s\n" % " ".join(cmd))
logfile.flush()
self.process = subprocess.Popen(cmd, stdin=subprocess.PIPE,
def __init__(self,
cmd=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb")):
self.child = pexpect.spawn(cmd)
- Gdb.logfile.write("+ %s\n" % cmd)
+ self.child.logfile = open(self.logname, "w")
+ self.child.logfile.write("+ %s\n" % cmd)
self.wait()
self.command("set confirm off")
self.command("set width 0")