aboutsummaryrefslogtreecommitdiff
path: root/debug/testlib.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2022-12-01 10:31:29 -0800
committerGitHub <noreply@github.com>2022-12-01 10:31:29 -0800
commit907f1e5b67daedef0acbefb2102b82a23f9abfad (patch)
tree17e3b15d8620c007d8777c469b59f8b4aee3b785 /debug/testlib.py
parent6d915ba5dab4f7b087af7aac080b23a9255d8b18 (diff)
downloadriscv-tests-907f1e5b67daedef0acbefb2102b82a23f9abfad.zip
riscv-tests-907f1e5b67daedef0acbefb2102b82a23f9abfad.tar.gz
riscv-tests-907f1e5b67daedef0acbefb2102b82a23f9abfad.tar.bz2
debug: Disassemble memory when a failure happens. (#432)
This gives you less noise in the log, and more chance of figuring out what code was actually executed.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r--debug/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 27a9694..f8e3d8c 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -1217,7 +1217,7 @@ class GdbTest(BaseTest):
return
self.gdb.interrupt()
self.gdb.command("info breakpoints", reset_delays=None)
- self.gdb.command("disassemble", ops=20, reset_delays=None)
+ self.gdb.command("x/20i $pc", ops=20, reset_delays=None)
self.gdb.command("info registers all", ops=20, reset_delays=None)
self.gdb.command("maintenance flush register-cache", reset_delays=None)
self.gdb.command("info threads", ops=20, reset_delays=None)