Changeset 45477a3 in rtems
- Timestamp:
- Jul 17, 2003, 9:59:42 PM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 718f981
- Parents:
- d62cfdf
- Location:
- c/src/lib/libbsp/mips/shared/gdbstub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/mips/shared/gdbstub/ChangeLog
rd62cfdf r45477a3 1 2003-07-17 Joel Sherrill <joel@OARcorp.com> 2 3 PR 433/tools 4 * mips-stub.c: Patch from C. M. Heard <heard@pobox.com> described as: 5 6 The purpose of the patch is to make the stub ignore all 7 characters except '+' (ack) or '-' (nak) when it has transmitted a 8 packet and expects an acknowledgment. Without the patch, 9 putpacket() will retransmit each time it receives anything other 10 than '+' when expecting an ack, and that, bitter experience has 11 found, frequently results in the stub failing to sync up when 12 initially attaching to gdb. 13 14 I think that rtems users will notice significant improvement in 15 the of the mips stub if this patch is incorporated in the 16 distribution; certainly I did in my stand-aline environment. I 17 should hasten to add that it is only an improvement and not a 100% 18 cure for synchronization problems because '+' characters can (and 19 do) during as message data, and it's still possible for these to 20 be mistaken as acks. I have no idea how to fix that short of 21 redesigning the gdb-remote protocol. 22 1 23 2002-11-01 Joel Sherrill <joel@OARcorp.com> 2 24 -
c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c
rd62cfdf r45477a3 604 604 605 605 /* 606 * Get a positive/negative acknowledgment for a transmitted packet. 607 */ 608 static char 609 getAck (void) 610 { 611 char c; 612 613 do 614 { 615 c = getDebugChar (); 616 } 617 while ((c != '+') && (c != '-')); 618 619 return c; 620 } 621 622 623 /* 606 624 * Send the packet in buffer and wait for a positive acknowledgement. 607 625 */ … … 649 667 putDebugChar (lowhex (checksum)); 650 668 } 651 while (get DebugChar() != '+');669 while (getAck () != '+'); 652 670 } 653 671
Note: See TracChangeset
for help on using the changeset viewer.