Add hwbp test (currently doesn't pass).
[riscv-tests.git] / debug / testlib.py
index 21f28d84a6d82ad05351334628a5ef50430fb383..f8c8062f2b9c05d9416d90099d3e84611924b2d8 100644 (file)
@@ -162,3 +162,9 @@ class Gdb(object):
         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