function_address = int(context.get("function_address"), 16)
# Set the breakpoint.
- # Note this might need to be switched per platform (ARM, mips, etc.).
- BREAKPOINT_KIND = 1
+ if self.getArchitecture() == "arm":
+ # TODO: Handle case when setting breakpoint in thumb code
+ BREAKPOINT_KIND = 4
+ else:
+ BREAKPOINT_KIND = 1
self.reset_test_sequence()
self.add_set_breakpoint_packets(function_address, do_continue=True, breakpoint_kind=BREAKPOINT_KIND)
g_c2_address = int(context.get("g_c2_address"), 16)
# Set a breakpoint at the given address.
- # Note this might need to be switched per platform (ARM, mips, etc.).
- BREAKPOINT_KIND = 1
+ if self.getArchitecture() == "arm":
+ # TODO: Handle case when setting breakpoint in thumb code
+ BREAKPOINT_KIND = 4
+ else:
+ BREAKPOINT_KIND = 1
self.reset_test_sequence()
self.add_set_breakpoint_packets(function_address, do_continue=True, breakpoint_kind=BREAKPOINT_KIND)
context = self.expect_gdbremote_sequence()