From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14993 invoked by alias); 9 Feb 2014 17:29:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14980 invoked by uid 89); 9 Feb 2014 17:29:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 09 Feb 2014 17:29:02 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s19HSxYa017273 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 9 Feb 2014 12:28:59 -0500 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s19HStJ7025840 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 9 Feb 2014 12:28:58 -0500 Date: Sun, 09 Feb 2014 17:29:00 -0000 From: Jan Kratochvil To: Paul Fertser Cc: Eli Zaretskii , gdb-patches@sourceware.org, ktietz@redhat.com Subject: Re: [PATCH] Add IPv6 support for remote TCP connections Message-ID: <20140209172855.GA27131@host2.jankratochvil.net> References: <1391878435-19340-1-git-send-email-fercerpav@gmail.com> <20140209083056.GA32481@host2.jankratochvil.net> <20140209095308.GH2320@home.lan> <20140209130501.GA15183@host2.jankratochvil.net> <83k3d4utwr.fsf@gnu.org> <20140209164748.GA25629@host2.jankratochvil.net> <20140209170821.GI2320@home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140209170821.GI2320@home.lan> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00261.txt.bz2 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