summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Debugger/debug_stub.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index eb39c0d..c938f13 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -1168,7 +1168,7 @@ _dbg__cmd_Detach:
teq r1, #CMD_DETACH_PARAMLEN /* Check for correct length */
bne __dbg__procCmdParamError /* Unexpected input, report error */
- pop sp!, {lr} /* Cleanup stack, since we won't return to the Debugger Run Loop */
+ ldmfd sp!, {lr} /* Cleanup stack, since we won't return to the Debugger Run Loop */
b _dbg__cont_check_breakpoint_type /* Continue from current PC */
/* _dbg__cmd_Continue