llvm-project/lldb/tools/lldb-server
David Spickett a7f8d96b16 [lldb] Use llvm::Optional for port in LaunchGDBServer
Previously we used UINT16_MAX to mean no port/no specifc
port. This leads to confusion because 65535 is a valid
port number.

Instead use an optional. If you want a specific port call
LaunchGDBServer as normal, otherwise pass an empty optional
and it will be set to the port that gets chosen.
(or left empty in the case where we fail to find a port)

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D92035
2020-11-30 11:20:39 +00:00
..
Darwin/resources Update com.apple.diagnosticd.diagnostic entitlement 2019-03-01 03:34:51 +00:00
Acceptor.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Acceptor.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
CMakeLists.txt [lldb] Port lldb gdb-server to libOption 2020-10-21 16:16:18 +02:00
LLDBServerUtilities.cpp Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
LLDBServerUtilities.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
LLGSOptions.td [lldb] Port lldb gdb-server to libOption 2020-10-21 16:16:18 +02:00
SystemInitializerLLGS.cpp lldb-server: LLGS: support 32-bit on 64-bit hosts 2019-05-21 01:25:48 +00:00
SystemInitializerLLGS.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
lldb-gdbserver.cpp [lldb] Fix windows build for fa5fa63fd1 2020-10-21 17:51:11 +02:00
lldb-platform.cpp [lldb] Use llvm::Optional for port in LaunchGDBServer 2020-11-30 11:20:39 +00:00
lldb-server.cpp [Signal] Allow llvm clients to opt into one-shot SIGPIPE handling 2019-11-18 10:27:27 -08:00
lldb-server.exports