This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested.
> From: John Darrington <john@darrington.wattle.id.au>
> Cc: John Darrington <john@darrington.wattle.id.au>
> Date: Tue, 9 Oct 2018 19:32:57 +0200
>
> When invoking gdbserver, if the COMM parameter does not include a colon (:) and
> is not the name of an existing character device, then a local (unix) domain
> socket will be created with that name and gdbserver will listen for connections
> on that.
>
> gdb/doc/
> * gdb.texinfo (Server): Describe connection over a local domain socket.
>
> gdb/gdbserver/
> * NEWS: Mention new feature.
> * configure.ac (AC_CHECK_HEADERS): Add sys/un.h.
> * remote-utils.c (remote_prepare): Create a local socket if requested.
> * remote-utils.c (remote_open): Don't attempt to open a file if it's a socket.
> * remote-utils.c (handle_accept_event): Display the name of the socket on connection.
Thanks. The documentation parts are approved, but I think we should
say somewhere that this feature is only available on systems that
support Unix domain sockets.