Remove hardware breakpoints so future tests work.
authorTim Newsome <tim@sifive.com>
Tue, 21 Jun 2016 20:56:32 +0000 (13:56 -0700)
committerTim Newsome <tim@sifive.com>
Tue, 19 Jul 2016 01:51:54 +0000 (18:51 -0700)
debug/gdbserver.py

index deb3d579bda1d787e1ece77720e288f819cd61ea..030b6a17aba70386b8a77fc220a5bcf4e843ef19 100755 (executable)
@@ -241,6 +241,9 @@ class DebugTest(DeleteServer):
 
         output = self.gdb.c()
         self.assertIn("Cannot insert hardware breakpoint", output)
+        # Clean up, otherwise the hardware breakpoints stay set and future
+        # tests may fail.
+        self.gdb.command("D")
 
     def test_registers(self):
         # Get to a point in the code where some registers have actually been