summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f281625)
* debug: Need to apply remotetimeout before connecting to remote target
* debug: whitespace cleanup
def __init__(self, ports,
cmd=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb"),
def __init__(self, ports,
cmd=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb"),
binary=None):
assert ports
binary=None):
assert ports
self.command("set height 0")
# Force consistency.
self.command("set print entry-values no")
self.command("set height 0")
# Force consistency.
self.command("set print entry-values no")
+ self.command("set remotetimeout %d" % timeout)
self.command("target extended-remote localhost:%d" % port)
if binary:
self.command("file %s" % binary)
self.command("target extended-remote localhost:%d" % port)
if binary:
self.command("file %s" % binary)
BaseTest.classSetup(self)
if gdb_cmd:
BaseTest.classSetup(self)
if gdb_cmd:
- self.gdb = Gdb(self.server.gdb_ports, gdb_cmd, binary=self.binary)
+ self.gdb = Gdb(self.server.gdb_ports, gdb_cmd, timeout=self.target.timeout_sec, binary=self.binary)
- self.gdb = Gdb(self.server.gdb_ports, binary=self.binary)
+ self.gdb = Gdb(self.server.gdb_ports, timeout=self.target.timeout_sec, binary=self.binary)
self.logs += self.gdb.lognames()
self.logs += self.gdb.lognames()
- if self.target:
- self.gdb.global_command("set arch riscv:rv%d" % self.hart.xlen)
- self.gdb.global_command("set remotetimeout %d" %
- self.target.timeout_sec)
+ self.gdb.global_command("set arch riscv:rv%d" % self.hart.xlen)
+ self.gdb.global_command("set remotetimeout %d" %
+ self.target.timeout_sec)
for cmd in self.target.gdb_setup:
self.gdb.command(cmd)
for cmd in self.target.gdb_setup:
self.gdb.command(cmd)