[PATCH] Add IPv6 support for remote TCP connections

Jan Kratochvil jan.kratochvil@redhat.com
Sun Feb 9 17:29:00 GMT 2014


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



More information about the Gdb-patches mailing list