Remote debugging over local domain sockets?
Tom Tromey
tom@tromey.com
Wed Aug 29 15:17:00 GMT 2018
>>>>> "John" == John Darrington <john@darrington.wattle.id.au> writes:
John> So far as I'm aware, it's not possible to run a remote target over
John> a local domain (AF_UNIX) socket.
John> Would you accept a patch which changes the behaviour of "target
John> remote /foo/bar" such that if /foo/bar is a socket, gdb will
John> connect to that socket instead of trying to open it as a device?
How about stat'ing the path and doing the right thing depending on
whether it is a device or a socket?
Alternatively, how about new syntax instead? "target remote /path" has meant
to open a serial device since forever. However there's also syntax like
"target remote udp:host:port". So maybe "target remote socket:/path"?
Tom
More information about the Gdb-patches
mailing list