This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Remote debugging over UDP
- To: Momchil Velikov <velco at fadata dot bg>
- Subject: Re: Remote debugging over UDP
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 29 Mar 2000 09:48:04 +1000
- CC: GDB List <gdb at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <38DFABC7.A884D5D7@fadata.bg>
Momchil Velikov wrote:
>
> Hi,
>
> I have added support for debugging remote targets
> over UDP ("added support", that's cloned ser-tcp.c and tweaked it
> a little bit).
>
> Are interested in including that in GDB ?
> Do you mind changing the syntax the parameter NAME to
> serial.c:serial_open () to
> tcp:<host>:<port>, and
> udp:<host>:<port>
> for TCP and UDP connections, respectively ?
Hi,
This really needs to be added to an FAQ. GDB's remote protocol doesn't
work reliably over UDP. There are many cases where it is stateful
(assuming that a packet won't get duplicated).
Once the protocol is sorted out (perhaphs making it stateless) a udp
implementation would be accepted.
This patch, or variations of it turn up so often, I'm actually highly
tempted to revisit this ``policy'' and simply commit something. A
banner message reporting that the feature isn't considered reliable when
someone tries to use it being part of the commit :-/
Andrew