This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2] Make gdbserver connect to SOCK_STREAM sockets
- From: Gabriel Corona <gabriel dot corona at enst-bretagne dot fr>
- To: gdb-patches at sourceware dot org
- Date: Tue, 5 May 2015 22:19:18 +0200
- Subject: Re: [PATCH 2/2] Make gdbserver connect to SOCK_STREAM sockets
- Authentication-results: sourceware.org; auth=none
- References: <1430856897-12051-1-git-send-email-gabriel dot corona at enst-bretagne dot fr> <1430856897-12051-2-git-send-email-gabriel dot corona at enst-bretagne dot fr>
This second patch may not be that useful because gdbserver is launched
first and starts communicating immediately without waiting for a
remote side to connect to the socket. If the other side is launched
too late, gdbserver has already timed-out and the communication fails
with:
> Remote debugging using |socat STDIO UNIX-LISTEN:a.sock
> Ignoring packet error, continuing...
> warning: unrecognized item "timeout" in "qSupported" response
> Ignoring packet error, continuing..
--
Gabriel