================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to