aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-11-29 10:01:01 -0800
committerTim Newsome <tim@sifive.com>2022-11-29 10:01:01 -0800
commit3ec15c2bf7a6fba48b57e4436f492f7b1b6e48c5 (patch)
tree864b8a442b6af2079245081f0f0944a3b1166237
parentcf156580c8f66ddaa14bf7cfd01aff3b9e25aa29 (diff)
downloadriscv-tests-3ec15c2bf7a6fba48b57e4436f492f7b1b6e48c5.zip
riscv-tests-3ec15c2bf7a6fba48b57e4436f492f7b1b6e48c5.tar.gz
riscv-tests-3ec15c2bf7a6fba48b57e4436f492f7b1b6e48c5.tar.bz2
Add wait argument to stepi()
-rw-r--r--debug/testlib.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 5d4e32f..8ba51e2 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -863,9 +863,13 @@ class Gdb:
result[name] = parse_rhs(parts[1])
return result
- def stepi(self):
- output = self.command("stepi", ops=10)
- return output
+ def stepi(self, wait=True):
+ if wait:
+ return self.command("stepi", ops=10)
+ else:
+ self.active_child.sendline("stepi")
+ self.active_child.expect("stepi", timeout=self.timeout)
+ return ""
def load(self):
output = self.system_command("load", ops=1000)