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

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 2 09:15:23 PDT 2024


slydiman wrote:

> I am still looking for an answer to this one. If it's only the Handle_qLaunchGDBServer that needs to not launch an lldb-server then I don't see why the check couldn't/shouldn't be performed there.

I cannot answer in the thread, no idea why. The answer is here
https://github.com/llvm/llvm-project/pull/104238#issuecomment-2368274458

LaunchGDBServer() may be called from the child process at the beginnig if inferior_arguments are present. The behavior depends on the protocol. gdbserver will be launched in case of unix sockets. Otherwise we need to check that gdbserver is exists and wait for the tcp gdb connection. This part cannot be optimized/simplified.

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


More information about the lldb-commits mailing list