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

Reply via email to