Re: Remote debugging over local domain sockets?

Tom Tromey
2018-08-29T15:17:51Z

>>>>> "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