aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-07-06 12:35:06 +0800
committerTat-Chee Wan (USM)2011-07-06 12:35:06 +0800
commit6351b5a7bf1fc79882767012510b34ff48f902f4 (patch)
tree30dca5f690108170eec591fb901faa4c75229771
parent48c5777e564acd22e1237fd63437f2413da9c541 (diff)
update comment on nak message processing
-rw-r--r--Debugger/debug_comm.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/Debugger/debug_comm.S b/Debugger/debug_comm.S
index 70499e1..4c23912 100644
--- a/Debugger/debug_comm.S
+++ b/Debugger/debug_comm.S
@@ -360,7 +360,7 @@ _hasMsg2Copy:
moveq r0, r4 /* If found, set R0 to current message length */
beq exit_dbg__getDebugMsg /* and return */
teq r0, #MSGBUF_NAKCHAR /* Look for '-' */
- beq exit_dbg__getMsgError /* FIXME: We can't handle retransmission, flag message error */
+ beq exit_dbg__getMsgError /* Error from Host, Retransmit previous message */
teq r0, #MSGBUF_ACKCHAR /* Look for '+' */
addeq r5, r5, #1 /* Adjust Buffer Start Pointer (excl '+') */
subeq r4, r4, #1 /* Adjust Message Length */
@@ -411,9 +411,11 @@ exit_dbg__getMsgError:
bl dbg__putDebugMsg /* Retransmit message */
mov r0, #0 /* Flag no message received */
+
#if 0
mov r0, #MSGBUF_MSGERROR
#endif
+
exit_dbg__getDebugMsg:
mov r1, r5 /* Return GDB Message Buffer Pointer in R1 */
ldmfd sp!, {r4,r5,pc}