class DebugBreakpoint(DebugTest):
def test(self):
-
self.gdb.b("rot13")
-
# The breakpoint should be hit exactly 2 times.
for _ in range(2):
output = self.gdb.c()
self.binary = self.target.compile(self.hart, self.download_c.name,
"programs/checksum.c")
- self.gdb.command("file %s" % self.binary)
+ self.gdb.global_command("file %s" % self.binary)
def test(self):
self.gdb.load()
- # Some hart will get there first! Let them race in RTOS mode.
- for hart in self.target.harts:
- self.gdb.select_hart(hart)
- self.gdb.p("$pc=_start")
- self.gdb.command("b _exit")
-
+ self.parkOtherHarts()
+ self.gdb.command("b _exit")
self.gdb.c()
assertEqual(self.gdb.p("status"), self.crc)
os.unlink(self.download_c.name)