This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Change stubs to handle '$' after packet start
- To: jtc@redback.com
- Subject: Re: Change stubs to handle '$' after packet start
- From: Stan Shebs <shebs@cygnus.com>
- Date: Thu, 19 Aug 1999 18:25:13 -0700
- CC: gdb-patches@sourceware.cygnus.com
From: jtc@redback.com (J.T. Conklin)
Date: 17 Aug 1999 23:26:32 -0700
Now for some new changes...
This change adds code in getpacket() to start a new packet if the
packet start character ('$') is received while reading the packet
contents. This prevents the loss of the subsequent packet if the
packet end character '#' is lost/garbled.
The change is innocuous, but is it really useful? If you're losing
random chars out of packets, seems like it would be better to let
the user know, rather than trying to struggle on with bogus data
and dying within seconds anyway.
Stan