summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-23 09:00:52 +0800
committerTat-Chee Wan (USM)2011-03-23 09:00:52 +0800
commitcf0bf1c74c61c8bc4f3c74a9a92dc482be13d531 (patch)
tree9d6a04453d020aa1adf115ca0a034144ad157369
parent9c6c02f8557a1aa44c344024bd8e67af6816cd67 (diff)
changed response for unrecognized command to return empty gdb message
-rw-r--r--Debugger/debug_stub.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index 0a70784..4156d54 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -599,8 +599,13 @@ dbg__bkpt_waitCMD_cont:
bl _dbg__cmdChar2Index /* Index in R0 */
mov r1, #CMDINDEX_OUTOFRANGE
teq r0, r1
+ bl _dbg__nop
+ b dbg__bkpt_waitCMD_cont
+
+#if 0
moveq r0, #MSG_UNKNOWNCMD /* Out of range, Command character not recognized */
beq _dbg__cmdError /* Send response to GDB server */
+#endif
_dbg__cmdExists:
mov r3, r0 /* put Command Handler Index in R3 */