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

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 3 04:52:50 PDT 2024


labath 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 [#104238 (comment)](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.

Okay, that makes sense. Let's see how this goes.

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


More information about the lldb-commits mailing list