aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2018-05-11 09:39:48 -0700
committerMegan Wachs <megan@sifive.com>2018-05-11 09:39:48 -0700
commit5b1cac645fd867174e1ca23934c0d5f80445e88c (patch)
tree7952ba287be833effb474f8d4edcff65e4a5ac26
parent67500e2f200619bcd8ca3a8e5d396ea3021a7e27 (diff)
downloadriscv-tests-5b1cac645fd867174e1ca23934c0d5f80445e88c.zip
riscv-tests-5b1cac645fd867174e1ca23934c0d5f80445e88c.tar.gz
riscv-tests-5b1cac645fd867174e1ca23934c0d5f80445e88c.tar.bz2
debug: output some more useful info into the post-mortem data
-rw-r--r--debug/testlib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 0fe0322..09baf1b 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -549,6 +549,8 @@ class Gdb(object):
output = self.command("load", ops=1000)
assert "failed" not in output
assert "Transfer rate" in output
+ output = self.command("compare-sections", ops=1000)
+ assert "MIS" not in output
def b(self, location):
output = self.command("b %s" % location, ops=5)
@@ -852,6 +854,8 @@ class GdbTest(BaseTest):
self.gdb.interrupt()
self.gdb.command("disassemble", ops=20)
self.gdb.command("info registers all", ops=100)
+ self.gdb.command("flush regs")
+ self.gdb.command("info threads", ops=100)
def classTeardown(self):
del self.gdb
@@ -866,6 +870,7 @@ class GdbSingleHartTest(GdbTest):
if hart != self.hart:
self.gdb.select_hart(hart)
self.gdb.p("$pc=loop_forever")
+
self.gdb.select_hart(self.hart)
class ExamineTarget(GdbTest):