[PATCH] Implement IPv6 support for GDB/gdbserver
Eli Zaretskii
eliz@gnu.org
Thu May 24 16:54:00 GMT 2018
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Cc: gdb-patches@sourceware.org, palves@redhat.com, jan.kratochvil@redhat.com, fercerpav@gmail.com, sekiriki@gmail.com
> Date: Wed, 23 May 2018 19:40:06 -0400
>
> The square brackets in this case don't mean that the HOST is optional.
> Rather, they *enclose* the hostname. As explained in the text above
> this, IPv6 introduced a new way to specify URLs: by enclosing them in
> square brackets. This is because the IPv6 separator (':') is the same
> as the resource (port) separator, which can cause confusion. Therefore,
> an IPv6 URL can have the form:
>
> [::1]:1234
Then perhaps we shouldn't advertise the bracket-less syntax at all,
and only say somewhere that it is accepted for backward compatibility?
> Perhaps I shouldn't use @r{[} and @r{]}?
Yes, @r{..} is definitely wrong in that case, you should drop it.
More information about the Gdb-patches
mailing list