From: Tim Newsome Date: Fri, 10 Jun 2016 23:30:49 +0000 (-0700) Subject: Add test_too_many_hwbp. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71;p=riscv-tests.git Add test_too_many_hwbp. --- 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.