diff options
author | Tim Newsome <tim@sifive.com> | 2019-07-26 13:20:55 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2019-07-26 13:20:55 -0700 |
commit | a641296b19284f2f93d1e6b9a10e100f5e7948ef (patch) | |
tree | aef9873b0910fe7742efcdb7452f04e45449bafd | |
parent | 1610c6880545724287bd66a93974136a1e634b4a (diff) | |
download | riscv-tests-a641296b19284f2f93d1e6b9a10e100f5e7948ef.zip riscv-tests-a641296b19284f2f93d1e6b9a10e100f5e7948ef.tar.gz riscv-tests-a641296b19284f2f93d1e6b9a10e100f5e7948ef.tar.bz2 |
Ignore (some) gdb debug output.
-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 0bf8ed1..bd92e1f 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -583,7 +583,7 @@ class Gdb(object): return output.split('=', 1)[-1].strip() def p(self, obj, fmt="/x", ops=1): - output = self.command("p%s %s" % (fmt, obj), ops=ops) + output = self.command("p%s %s" % (fmt, obj), ops=ops).splitlines()[-1] m = re.search("Cannot access memory at address (0x[0-9a-f]+)", output) if m: raise CannotAccess(int(m.group(1), 0)) |