mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
2004-11-05 Jon Beniston <jon@beniston.com>
* remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK when an unexpected packet is received, as the target stubs continually retransmit the same packet until ACKed.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2004-11-05 Jon Beniston <jon@beniston.com>
|
||||||
|
|
||||||
|
* remote.c (putpkt_binary) Fix PR gdb/1806. Send an ACK
|
||||||
|
when an unexpected packet is received, as the target stubs
|
||||||
|
continually retransmit the same packet until ACKed.
|
||||||
|
|
||||||
2004-11-10 Randolph Chung <tausq@debian.org>
|
2004-11-10 Randolph Chung <tausq@debian.org>
|
||||||
|
|
||||||
* frame.c (get_prev_frame): Use get_frame_type to retrieve the
|
* frame.c (get_prev_frame): Use get_frame_type to retrieve the
|
||||||
|
@ -3972,9 +3972,12 @@ putpkt_binary (char *buf, int cnt)
|
|||||||
{
|
{
|
||||||
if (remote_debug)
|
if (remote_debug)
|
||||||
fprintf_unfiltered (gdb_stdlog, "Packet instead of Ack, ignoring it\n");
|
fprintf_unfiltered (gdb_stdlog, "Packet instead of Ack, ignoring it\n");
|
||||||
/* It's probably an old response, and we're out of sync.
|
/* It's probably an old response sent because an ACK
|
||||||
Just gobble up the packet and ignore it. */
|
was lost. Gobble up the packet and ack it so it
|
||||||
|
doesn't get retransmitted when we resend this
|
||||||
|
packet. */
|
||||||
read_frame (junkbuf, sizeof_junkbuf);
|
read_frame (junkbuf, sizeof_junkbuf);
|
||||||
|
serial_write (remote_desc, "+", 1);
|
||||||
continue; /* Now, go look for + */
|
continue; /* Now, go look for + */
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user