summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-23 07:17:13 +0800
committerTat-Chee Wan (USM)2011-03-23 07:17:13 +0800
commitb3b6c06df795c736afa26debc17aca7890d56aef (patch)
tree872dc6f26c7dab18399a78ea21db454da6e7e39c
parentfae838b025f11aca2c8835ec3b27f9d567a52226 (diff)
do not push lr to stack in continue command handler
-rw-r--r--Debugger/debug_stub.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index ffb6062..86a1187 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -953,10 +953,11 @@ _dbg__cmd_WriteMem:
* r0: parameter buffer pointer (contents after '$' and '<cmdchar>')
* Optional: AA..AA
* On exit:
- * r0, r1, r2, r3, r4: destroyed
+ * r0, r1, r2: destroyed
+ * Note: This routine does not return to caller. Instead it switches
+ * operating mode to UNDEF and returns to previously active program
*/
_dbg__cmd_Continue:
- stmfd sp!, {lr}
bl __dbg__cmdParamLen
cmp r1, #CMD_REG_CONTINUE_PARAMLEN /* Check for correct parameter length */
beq _dbg__cmd_processContinue /* Continue from current PC */