all repos — mgba @ 805ef9efdded3507ff4e68b47d2857466729e686

mGBA Game Boy Advance Emulator

ARM Debugger: Fix clearing software breakpoints
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 12:41:31 -0700
commit

805ef9efdded3507ff4e68b47d2857466729e686

parent

d1e2f2be6bba2e853c4b132ee98287731615f0ae

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/arm/debugger/debugger.csrc/arm/debugger/debugger.c

@@ -152,7 +152,9 @@ }

breakpoint = NULL; } - debugger->clearSoftwareBreakpoint(debugger, address, breakpoint->sw.mode, breakpoint->sw.opcode); + if (breakpoint) { + debugger->clearSoftwareBreakpoint(debugger, address, breakpoint->sw.mode, breakpoint->sw.opcode); + } } static void ARMDebuggerSetBreakpoint(struct mDebuggerPlatform* d, uint32_t address) {