diff options
author | Tim Newsome <tim@sifive.com> | 2016-06-10 16:30:49 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-07-18 18:51:54 -0700 |
commit | 675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71 (patch) | |
tree | b04e6ea8f542580372e8b83b3eaba78616884f09 /debug | |
parent | 440f54715a4a4335a371c61bc79079ead8c3c6fe (diff) | |
download | riscv-tests-675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71.zip riscv-tests-675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71.tar.gz riscv-tests-675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71.tar.bz2 |
Add test_too_many_hwbp.
Diffstat (limited to 'debug')
-rwxr-xr-x | debug/gdbserver.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py index e9e75c3..87692ab 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -206,6 +206,13 @@ class DebugTest(DeleteServer): #TODO self.assertIn("rot13 ", output) self.exit() + def test_too_many_hwbp(self): + for i in range(30): + self.gdb.hbreak("*rot13 + %d" % (i * 4)) + + output = self.gdb.c() + self.assertIn("Cannot insert hardware breakpoint", output) + def test_registers(self): # Get to a point in the code where some registers have actually been # used. |