From df3a37772fea4f6f7854100857aa3c1d2766a085 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 23 Mar 2011 10:22:22 +0800 Subject: add missing conditional branch to command checking logic --- Debugger/debug_stub.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Debugger/debug_stub.S') 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 -- cgit v1.2.3