[Lldb-commits] [lldb] [lldb] Have lldb-server assign ports to children in platform mode (PR #88845)
Anthony Ha via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 16 17:51:31 PDT 2024
================
@@ -301,13 +294,31 @@ int main_platform(int argc, char *argv[]) {
exit(socket_error);
}
printf("Connection established.\n");
+
+ std::optional<uint16_t> port = 0;
----------------
Awfa wrote:
I removed the optional port here, and just set the portmap within the availablePort branch.
I also realized I forgot to take into account the non-server mode, so I put `platform.SetPortMap(std::move(gdbserver_portmap));` for the else branch where `lldb-server` isn't running with the `--server` flag.
https://github.com/llvm/llvm-project/pull/88845
More information about the lldb-commits
mailing list