diff options
author | Tim Newsome <tim@sifive.com> | 2018-02-09 08:54:59 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-02-09 08:54:59 -0800 |
commit | ba39c5fc2885eb1400d6f9e13ae6c7588c1c1241 (patch) | |
tree | 2582ce2b92bb2f54fc67f24e7c5c12da32551044 /debug/gdbserver.py | |
parent | 1637fcbfd1b25b7341767ab7caa7a8173f471a51 (diff) | |
download | riscv-tests-ba39c5fc2885eb1400d6f9e13ae6c7588c1c1241.zip riscv-tests-ba39c5fc2885eb1400d6f9e13ae6c7588c1c1241.tar.gz riscv-tests-ba39c5fc2885eb1400d6f9e13ae6c7588c1c1241.tar.bz2 |
Test resuming from a trigger.resume_from_trigger
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 8c500bc..f0385d5 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -660,12 +660,17 @@ class TriggerLoadAddressInstant(TriggerTest): self.gdb.command("b just_before_read_loop") self.gdb.c() read_loop = self.gdb.p("&read_loop") + read_again = self.gdb.p("&read_again") self.gdb.command("rwatch data") self.gdb.c() # Accept hitting the breakpoint before or after the load instruction. assertIn(self.gdb.p("$pc"), [read_loop, read_loop + 4]) assertEqual(self.gdb.p("$a0"), self.gdb.p("&data")) + self.gdb.c() + assertIn(self.gdb.p("$pc"), [read_again, read_again + 4]) + assertEqual(self.gdb.p("$a0"), self.gdb.p("&data")) + # FIXME: Triggers aren't quite working yet #class TriggerStoreAddress(TriggerTest): # def test(self): |