aboutsummaryrefslogtreecommitdiff
path: root/Debugger/debug_stub.S
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-02-11 17:52:43 +0800
committerTat-Chee Wan (USM)2011-02-11 17:52:43 +0800
commit447d92e66be8c481db8e066da20fd8186ef78083 (patch)
tree6c119bcea377db5271c74b87b3766c47b43f2584 /Debugger/debug_stub.S
parent35623e1ac6e1f9b3932e0fe297010ee49e42ef20 (diff)
added preliminary run loop separation
Diffstat (limited to 'Debugger/debug_stub.S')
-rw-r--r--Debugger/debug_stub.S6
1 files changed, 4 insertions, 2 deletions
diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S
index 53b4abd..5d4cfff 100644
--- a/Debugger/debug_stub.S
+++ b/Debugger/debug_stub.S
@@ -3,7 +3,7 @@
*
*/
-/* Copyright (C) 2007-2010 the NxOS developers
+/* Copyright (C) 2007-2011 the NxOS developers
*
* Module Developed by: TC Wan <tcwan@cs.usm.my>
*
@@ -320,6 +320,7 @@ debug_armComplexCCTable:
.extern dbg__hasDebugMsg /* Check for message from the communications link */
.extern dbg__getDebugMsg /* Read a message from the communications link */
.extern dbg__putDebugMsg /* Write a message to the communications link */
+ .extern dbg__runloopTasks /* Platform specific Run Loop processing */
/* The Debugger Interface can handle a total of (n-1) Breakpoint States and 1 Single Stepping State,
@@ -501,7 +502,7 @@ dbg__bkpt_offset_outofrange:
*
****************************************************************************/
dbg__bkpt_waitCMD:
-1: bl dbg__getDebugMsg /* Read new message from Debugger, message buffer addr in R0, NULL if error */
+1: bl dbg__getDebugMsg /* Read new message from Debugger, message buffer addr in R0, 0 if none, -1 if error */
cmp r0, #0
beq 1b /* No message yet, keep checking */
movlt r0, #MSG_ERRCHKSUM /* Message invalid, checksum error? */
@@ -528,6 +529,7 @@ _dbg__cmdExists:
_dbg__cmdError:
_dbg_outputMsgStatusErr
bl dbg__putDebugMsg /* Send error response to the GDB server */
+ bl dbg__runloopTasks /* Execute platform run loop tasks while in ABRT mode */
b dbg__bkpt_waitCMD