summaryrefslogtreecommitdiff
path: root/Debugger/debug_macros.h
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-04-01 07:58:03 +0800
committerTat-Chee Wan (USM)2011-04-01 07:58:03 +0800
commitf6f876da76fe7d6f819fd82723848a3b90edce60 (patch)
treee0fe7d3862c44b6edb4843f487075d5fcb5ba4ba /Debugger/debug_macros.h
parentc12a111949acd48aacb16caa993fc23e28455ac4 (diff)
refactored message ack or nak routines to always send a reply to any gdb message
For GDB commands such as Continue or Step, no reply is expected. However, the GDB server needs to receive a reply to avoid hanging the read() command on the Host side. Consequently these 2 commands now send an Ack (no message) to keep the GDB server happy.
Diffstat (limited to 'Debugger/debug_macros.h')
-rw-r--r--Debugger/debug_macros.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Debugger/debug_macros.h b/Debugger/debug_macros.h
index 89c7035..e71d9ca 100644
--- a/Debugger/debug_macros.h
+++ b/Debugger/debug_macros.h
@@ -121,6 +121,20 @@
bne 1b
.endm
+/* _dbg_outputAckOnlyFlag
+ * Return Flag ('+') for Continue or Step
+ * On exit:
+ * R0: Pointer to Output Buffer ASCIIZ location
+ * R1: destroyed
+ * R2: destroyed
+ */
+ .macro _dbg_outputAckOnlyFlag
+ ldr r0, =debug_OutMsgBuf
+ ldr r1, =debug_AckOnlyFlag /* ASCIIZ terminated */
+ _dbg_stpcpy r0, r1, r2
+ .endm
+
+
/* _dbg_outputRetransmitFlag
* Return Flag ('-') for Checksum Error (retransmission needed)
* On exit: