From 675faf3d5e4f6e59b461dd95e1925f1bd9c4ed71 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Fri, 10 Jun 2016 16:30:49 -0700 Subject: [PATCH] Add test_too_many_hwbp. --- debug/gdbserver.py | 7 +++++++ 1 file changed, 7 insertions(+) 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. -- 2.30.2