[Lldb-commits] [lldb] [lldb] Fixed the error `unable to launch a GDB server` in API tests (PR #98833)
Dmitry Vasilyev via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 16 08:12:27 PDT 2024
slydiman wrote:
> Did you consider making `AllowPort(0)` do nothing?
GetNextAvailablePort() returns 0 in case of the empty map. LaunchGDBServer() does not update the map with the pid if the port is 0. So 0 is a special value which means `any`. Adding 0 to a map causes an unexpected behavior.
https://github.com/llvm/llvm-project/pull/98833
More information about the lldb-commits
mailing list