[PATCH 3/4] GDB: Fix documentation for invoking GDBSERVER
Sergio Durigan Junior
sergiodj@redhat.com
Sun Oct 21 16:47:00 GMT 2018
On Sunday, October 21 2018, John Darrington wrote:
> On Fri, Oct 19, 2018 at 04:45:14PM -0400, Sergio Durigan Junior wrote:
>
> The check needs to implemented on gdbserver/remote-utils.c:remote_open,
> and gdbserver needs to error out if "hint.ai_protocol == IPPROTO_UDP".
> And "parse_connection_spec_without_prefix" could be merged with
> "parse_connection_spec".
>
> A quick test shows that this is not necessary. Any attempt to start
> gdbserver with udp: will never get to remote_open because remote_prepare
> will fail when it gets to listen:
>
> "Can't listen on socket: Operation no supported."
>
> (listen is for connection orientated protocols only).
Yes, but this error message is not entirely clear. We should show a
more user-friendly message, and the best way to do that is to do an
early check for the UDP protocol.
Thanks,
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/
More information about the Gdb-patches
mailing list