diff options
author | John Darrington <john@darrington.wattle.id.au> | 2018-08-29 21:51:26 +0200 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2018-10-02 16:10:57 +0200 |
commit | c1168a2f66553cd4730931cf59e3be8378a1a03f (patch) | |
tree | 51f93d65860c1b74207ab7581c1d4bc461b55758 /gdb/configure.ac | |
parent | eb528ad18b276117cb1016edbb12419819786366 (diff) | |
download | gdb-c1168a2f66553cd4730931cf59e3be8378a1a03f.zip gdb-c1168a2f66553cd4730931cf59e3be8378a1a03f.tar.gz gdb-c1168a2f66553cd4730931cf59e3be8378a1a03f.tar.bz2 |
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.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 7f6a403..88f2fc4 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1853,6 +1853,7 @@ case ${host} in *go32* ) SER_HARDWIRE=ser-go32.o ;; *djgpp* ) SER_HARDWIRE=ser-go32.o ;; *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; + *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;; esac AC_SUBST(SER_HARDWIRE) |