This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] supports IPv6 only remote target
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Tsutomu Seki <sekiriki at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Feb 2016 20:13:42 +0200
- Subject: Re: [PATCH] supports IPv6 only remote target
- Authentication-results: sourceware.org; auth=none
- References: <CALZjo7uhLO0V9HPhW7wn-N5fs2dgwc4n7Gm2e20dezQL29_kgA at mail dot gmail dot com> <831t8ldc80 dot fsf at gnu dot org> <CALZjo7tGT3QRGVhnO9H8PZmxoew-_k64fc_spiDsdV5orxqEkQ at mail dot gmail dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 10 Feb 2016 20:43:40 +0900
> From: Tsutomu Seki <sekiriki@gmail.com>
> Cc: gdb-patches@sourceware.org
>
> Changed address to be "@code{fe80::1%eth1}", to include scope id
> as written later.
>
> > This example seems to imply that more than just taking brackets
> > is required.
>
> Your are right. This implies address/port separation rule and
> address/scope separation rule. The former should be documented,
> because address/port separation is done by the application before
> passing them to getaddrinfo.
>
> > Should we tell more about that?
>
> On the other hand, the latter is difficult to document (for me) in
> generic manner, because %-style scope-id notation depends on
> implementation of getaddrinfo.
I think what you did is good enough, thanks.
> > I think this will break the build with mingw.org's MinGW. It doesn't
> > have wspiapi.h, AFAIK. What exactly is needed from that header?
>
> It is needed to support getaddrinfo() on Windows 2000 and older versions.
>
> What can I do for it? The easiest solution is to replace with <ws2tcpip.h>,
> but Windows 2000 support (as a host) would be dropped.
Is it feasible to copy the necessary bits from that header, i.e. have
the prototype in ser-tcp.c (or in some suitable GDB header file)?
Thanks.