[Lldb-commits] [lldb] [lldb] Removed gdbserver ports map from lldb-server (PR #104238)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 13 06:50:55 PDT 2024


labath wrote:

>  If you want to execute such child process for unix socket too, it is necessary to transfer the protocol somehow too.

I do want it. I don't think it's necessary to transfer the type of the socket, as that can be determined by inspecting the socket FD (`getsockopt(SO_DOMAIN/SO_PROTOCOL)`). I'd probably do it by creating a new `Socket::Create` static function which takes the FD, and instantiates the appropriate type based on what this function returns.

https://github.com/llvm/llvm-project/pull/104238


More information about the lldb-commits mailing list