Allow remote debugging over a Unix local domain socket.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 29 Aug 2018 19:51:26 +0000 (21:51 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 2 Oct 2018 14:10:57 +0000 (16:10 +0200)
commitc1168a2f66553cd4730931cf59e3be8378a1a03f
tree51f93d65860c1b74207ab7581c1d4bc461b55758
parenteb528ad18b276117cb1016edbb12419819786366
Allow remote debugging over a Unix local domain socket.

Extend the "target remote" and "target extended-remote" commands
such that if the filename provided is a Unix local domain (AF_UNIX)
socket, then it'll be treated as such, instead of trying to open
it as if it were a character device.

gdb/ChangeLog:
* NEWS: Mention changed commands.
* ser-uds.c: New file.
* configure.ac (SER_HARDWIRE): Add ser-uds.o.
* configure: Regenerate.
* Makefile.in: Add new file.
* serial.c (serial_open): Check if filename is a socket
  and lookup the appropriate interface accordingly.

gdb/doc/ChangeLog:
* gdb.texinfo (Remote Connection Commands): Describe
  the changes to target remote and target extended-remote
  relating to Unix domain sockets.
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/configure
gdb/configure.ac
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/ser-uds.c [new file with mode: 0644]
gdb/serial.c