This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Revised UDP support (was: Re: [Fwd: [patch] UDP transport support])
- To: Todd Whitesel <toddpw at windriver dot com>
- Subject: Re: Revised UDP support (was: Re: [Fwd: [patch] UDP transport support])
- From: Momchil Velikov <velco at fadata dot bg>
- Date: Mon, 03 Apr 2000 11:42:49 +0200
- CC: Andrew Cagney <ac131313 at cygnus dot com>, GDB Patch List <gdb-patches at sourceware dot cygnus dot com>
- References: <200004030826.BAA20431@alabama.wrs.com>
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