diff options
author | Tim Newsome <tim@sifive.com> | 2022-12-01 10:31:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 10:31:29 -0800 |
commit | 907f1e5b67daedef0acbefb2102b82a23f9abfad (patch) | |
tree | 17e3b15d8620c007d8777c469b59f8b4aee3b785 /debug | |
parent | 6d915ba5dab4f7b087af7aac080b23a9255d8b18 (diff) | |
download | riscv-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')
-rw-r--r-- | debug/testlib.py | 2 |
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) |