diff options
author | Tim Newsome <tim@sifive.com> | 2016-08-22 17:54:51 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-09-01 16:35:15 -0700 |
commit | 1099c0dadd3c315d81ba5ef2e8712b6c08076ae2 (patch) | |
tree | 59d8f80dd434c3d47fa58fba2cad024d1501ab6d /debug/testlib.py | |
parent | 7567f1e8ce206226bc596cb88405939eb558ae6c (diff) | |
download | riscv-tests-1099c0dadd3c315d81ba5ef2e8712b6c08076ae2.zip riscv-tests-1099c0dadd3c315d81ba5ef2e8712b6c08076ae2.tar.gz riscv-tests-1099c0dadd3c315d81ba5ef2e8712b6c08076ae2.tar.bz2 |
Add test for address triggers.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index c186a17..b2bfa8e 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -186,6 +186,11 @@ class Gdb(object): value = int(output.split('=')[-1].strip(), 0) return value + def p_string(self, obj): + output = self.command("p %s" % obj) + value = shlex.split(output.split('=')[-1].strip())[1] + return value + def stepi(self): output = self.command("stepi") assert "Cannot" not in output |