This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add IPv6 support for remote TCP connections
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Paul Fertser <fercerpav at gmail dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sourceware dot org, ktietz at redhat dot com
- Date: Sun, 9 Feb 2014 18:28:55 +0100
- Subject: Re: [PATCH] Add IPv6 support for remote TCP connections
- Authentication-results: sourceware.org; auth=none
- References: <1391878435-19340-1-git-send-email-fercerpav at gmail dot com> <20140209083056 dot GA32481 at host2 dot jankratochvil dot net> <20140209095308 dot GH2320 at home dot lan> <20140209130501 dot GA15183 at host2 dot jankratochvil dot net> <83k3d4utwr dot fsf at gnu dot org> <20140209164748 dot GA25629 at host2 dot jankratochvil dot net> <20140209170821 dot GI2320 at home dot lan>
On Sun, 09 Feb 2014 18:08:21 +0100, Paul Fertser wrote:
> But gnulib docs say "This function is missing on some platforms: HP-UX
> 11.11, IRIX 6.5, OSF/1 5.1, Solaris 7, Cygwin 1.5.x, mingw, MSVC 9,
> Interix 3.5, BeOS", is it really ok this way?
+
> Another point: configure.ac should probably check for getaddrinfo in
> "nsl" and "socket" as Solaris docs say both libs are required for it.
Good catch. One should be able to test some of those (at least the IRIX) at:
http://gcc.gnu.org/wiki/CompileFarm
> Regarding gdbserver mods, I didn't test it at all but from a cursory
> look at the source code it feels like the user can't specify if an
> ipv4 or ipv6 socket should be used? And that only a single socket is
> bound, so if ipv6 is available, it'll bind to ipv6 and if the
> particular system doesn't map ipv4 address space to ipv6 (such as
> OpenBSD) then it wouldn't be possible to make gdbserver accessible on
> legacy ipv4 at all?
If some OSes do not support the IPv6<->IPv4 connections then sure gdbserver
has to bind to two sockets and select() which one gets a connection first.
That should be easier for users than introducing new commandline options.
> Do you want me to send any updates to this patch or will you handle it
> yourself now?
It can be all faster if you do it, I should do it otherwise anyway.
Thanks,
Jan