From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30999 invoked by alias); 9 Oct 2006 19:36:23 -0000 Received: (qmail 30991 invoked by uid 22791); 9 Oct 2006 19:36:22 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Oct 2006 19:36:21 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-34-198.inter.net.il [80.230.34.198]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EWC50980 (AUTH halo1); Mon, 9 Oct 2006 21:36:13 +0200 (IST) Date: Mon, 09 Oct 2006 19:36:00 -0000 Message-Id: From: Eli Zaretskii To: Jan Kratochvil CC: gdb-patches@sourceware.org In-reply-to: <20061009141634.GA392@host0.dyn.jankratochvil.net> (message from Jan Kratochvil on Mon, 9 Oct 2006 16:16:34 +0200) Subject: Re: [patch] IPv6 support for gdbserver Reply-to: Eli Zaretskii References: <20060927163337.GA27149@host0.dyn.jankratochvil.net> <20060927182038.GA5635@nevyn.them.org> <20060927185547.GA13544@host0.dyn.jankratochvil.net> <20060927190611.GA7326@nevyn.them.org> <20060930152757.GA27372@host0.dyn.jankratochvil.net> <20061008190239.GA29584@host0.dyn.jankratochvil.net> <20061009141634.GA392@host0.dyn.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00082.txt.bz2 > Date: Mon, 9 Oct 2006 16:16:34 +0200 > From: Jan Kratochvil > Cc: gdb-patches@sourceware.org > > > And second, isn't there a better way of specifying two descriptors? I > > find the "fdNM" method inelegant, and the limitation of a single-digit > > descriptor it requires too high a price to pay. I hope we can come up > > with a better method. > > Designed for trivia C parsing as the IPv6 support was considered too > complicated by Daniel Jacobowitz and the string parsing in C is a lot of lines. > The new syntax looks like that of socat(1): > socat EXEC:'gdbserver fdin=3,fdout=4 emacs foo.txt',fdin=3,fdout=4 TCP-LISTEN:2345 I'd prefer to lift the limitation of one-digit descriptor. > > > +You can choose any port number you want (@code{2345} here) as long as it does > > > +not conflict with any TCP ports already in use on the target system (for > > > +example, @code{23} is reserved for @code{telnet}).@footnote{If you choose > > > +a port number that conflicts with another service, @code{socat} prints an error > > > +message and exits.} You must use the same port number with the host > > > +@value{GDBN} @code{target remote} command. > > > + > > > +On IPv4 networks you may also run @code{gdbserver} directly, without the > > > +@code{socat} helper there (equivalent command to the example above): > > > + > > > +@smallexample > > > +target> gdbserver :2345 emacs foo.txt > > > +@end smallexample > > > > The example (and the sentence that precedes it) should be before the > > descriptive text, otherwise the text doesn't make sense. > > The first paragraph describes the line above it: > socat EXEC:'gdbserver fdin=3,fdout=4 emacs foo.txt',fdin=3,fdout=4 TCP-LISTEN:2345 Sorry, I didn't see the "2345" at the end of that line. Which reminds me: lines in @smallexample should be shorter than 64 characters; anything longer will overflow the page margin. So please break the long lines in @smallexample into two lines. > > > * gdb.texinfo (Using the gdbserver program): Remove "host:port". > > > > Why? I think back-compatibility is important. > > It looks broken to me to support IPv4 without supporting IPv6, moreover if the > IPv6 functions to use are simpler. That's not a reason good enough to drop back-compatibility, even if I'd agree with your assertion about IPv6 (which I don't, and neither does Daniel, I think).