ARM Debugger: Fix clearing software breakpoints
Jeffrey Pfau jeffrey@endrift.com
Sat, 17 Sep 2016 12:41:31 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/arm/debugger/debugger.c
→
src/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) {