Revised UDP support (was: Re: [Fwd: [patch] UDP transport support])

Momchil Velikov velco@fadata.bg
Mon Apr 3 01:39:00 GMT 2000


Todd Whitesel wrote:
> 
> > > Thanks.  I've put this change onto the list for GDB 5.1.  To accept the
> > > new file ser-udp.c, I'd assume we'll need an assignment.  However, I
> > > strongly suspect that you just copied ser-tcp.c and changed three lines.
> >
> > Absolutely correct (well, I didn't count the lines).
> 
> Somebody please explain to me why this duplication is being checked in,
> instead of an option being added to ser-tcp.c ??

Indeed, we can rename ser-tcp.c to, e.g. ser-sock.c, rename all the
functions
from tcp_whatever to sock_whatever, except tcp_open and udp_open and
register two interfaces, differing only in the open functions.

Regards,
-velco


More information about the Gdb-patches mailing list