#TODO self.assertIn("rot13 ", output)
self.exit()
+ def test_hwbp(self):
+ self.gdb.hbreak("rot13")
+ # The breakpoint should be hit exactly 2 times.
+ for i in range(2):
+ output = self.gdb.c()
+ self.gdb.p("$pc")
+ self.assertIn("Breakpoint ", output)
+ #TODO self.assertIn("rot13 ", output)
+ self.exit()
+
def test_registers(self):
# Get to a point in the code where some registers have actually been
# used.
assert "not defined" not in output
assert "Breakpoint" in output
return output
+
+ def hbreak(self, location):
+ output = self.command("hbreak %s" % location)
+ assert "not defined" not in output
+ assert "Breakpoint" in output
+ return output