summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-03-23 10:22:22 +0800
committerTat-Chee Wan (USM)2011-03-23 10:22:22 +0800
commitdf3a37772fea4f6f7854100857aa3c1d2766a085 (patch)
tree350caee02b0fba3ea669b97ef88c476f550845e9
parent17fed9ce97331172b39f16bc0c4cdbd0109c27a3 (diff)
add missing conditional branch to command checking logic
-rw-r--r--Debugger/debug_stub.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index 5d05a49..5c91975 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -603,7 +603,9 @@ dbg__bkpt_waitCMD_cont:
bl _dbg__cmdChar2Index /* Index in R0 */
mov r1, #CMDINDEX_OUTOFRANGE
teq r0, r1
- bl _dbg__nop
+ bne _dbg__cmdExists /* Found valid command, execute it */
+_dbg_unknown_command:
+ bl _dbg__nop /* Command character not recognized, send empty response to GDB server */
b dbg__bkpt_waitCMD_cont
#if 0