GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested.
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 22 Sep 2018 10:35:41 +0000 (12:35 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 23 Oct 2018 14:09:31 +0000 (16:09 +0200)
commitf19c7ff839d7a32ebb48482ae7d318fb46ca823d
tree20fb679f8c570679427169092b674cd0a8199fc8
parent2849d19feb458ade67cdcc6a82f0e7b1be99b46b
GDBSERVER: Listen on a unix domain (instead of TCP) socket if requested.

When invoking gdbserver, if the COMM parameter takes the form "unix::/path/name"
then a local (unix) domain socket will be created with that name and gdbserver
will listen for connections on that.

    gdb/
    * NEWS: Mention new feature.

    gdb/gdbserver/
    * configure.ac (AC_CHECK_HEADERS): Add sys/un.h.
    * configure: Regenerate.
    * remote-utils.c (remote_prepare): Create a local socket if requested.
     (remote_open):  Don't attempt to open a file if it's a socket.
     (handle_accept_event): Display the name of the socket on connection.

   gdb/common/
   * netstuff.c (parse_connection_spec)[prefixes]: New member for local domain sockets.
gdb/NEWS
gdb/common/netstuff.c
gdb/gdbserver/configure.ac
gdb/gdbserver/remote-utils.c