aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2020-04-10 13:40:20 -0700
committerGitHub <noreply@github.com>2020-04-10 13:40:20 -0700
commit2a869e0c73053ac9c3628de4f5f0d41b5fda0aaf (patch)
treeb52747204738bbc787fbdc5b28d5e49a8e4dca99
parentf2107b6def72e7d7d7eba22712b04c8747547b83 (diff)
downloadriscv-tests-2a869e0c73053ac9c3628de4f5f0d41b5fda0aaf.zip
riscv-tests-2a869e0c73053ac9c3628de4f5f0d41b5fda0aaf.tar.gz
riscv-tests-2a869e0c73053ac9c3628de4f5f0d41b5fda0aaf.tar.bz2
Make TooManyHwbp more thorough. (#272)
Test the behavior described in https://github.com/riscv/riscv-openocd/issues/76.
-rwxr-xr-xdebug/gdbserver.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index da671d3..ca5855a 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -615,9 +615,14 @@ class TooManyHwbp(DebugTest):
output = self.gdb.c(checkOutput=False)
assertIn("Cannot insert hardware breakpoint", output)
+ # There used to be a bug where this would fail if done twice in a row.
+ output = self.gdb.c(checkOutput=False)
+ assertIn("Cannot insert hardware breakpoint", output)
# Clean up, otherwise the hardware breakpoints stay set and future
# tests may fail.
- self.gdb.command("D")
+ self.gdb.command("delete")
+ self.gdb.b("_exit")
+ self.exit()
class Registers(DebugTest):
def test(self):