llvm-project/lldb/tools/lldb-server
Jan Kratochvil 94b1ff72f5 Sanity check --max-gdbserver-port
In mail
	[lldb-dev] Remote debugging a docker process
	https://lists.llvm.org/pipermail/lldb-dev/2019-March/014795.html
user was confused by --min-gdbserver-port and --max-gdbserver-port options
being ignored. I think there is even a bug that --max-gdbserver-port is upper
exclusive limit (and not upper inclusive limit appropriate for max).

At least this patch should catch such mistake by an error message. The question
is whether --max-gdbserver-port should not be changed to really be max and not
max+1 but that would break backward compatibility.

Now the mail example does produce:
	error: --min-gdbserver-port (5001) is not lower than --max-gdbserver-port (5001)

Differential Revision: https://reviews.llvm.org/D58962

llvm-svn: 355554
2019-03-06 21:52:19 +00:00
..
Darwin/resources Update com.apple.diagnosticd.diagnostic entitlement 2019-03-01 03:34:51 +00:00
Acceptor.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Acceptor.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt [CMake] Add code signing for lldb-server on iOS 2019-01-28 16:57:23 +00:00
LLDBServerUtilities.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LLDBServerUtilities.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SystemInitializerLLGS.cpp [Reproducers] Initialize reproducers before initializing the debugger. 2019-02-21 22:26:16 +00:00
SystemInitializerLLGS.h [Reproducers] Initialize reproducers before initializing the debugger. 2019-02-21 22:26:16 +00:00
lldb-gdbserver.cpp [lldb] [lldb-server] Catch and report errors from main loop 2019-02-14 13:52:37 +00:00
lldb-platform.cpp Sanity check --max-gdbserver-port 2019-03-06 21:52:19 +00:00
lldb-server.cpp [Reproducers] Initialize reproducers before initializing the debugger. 2019-02-21 22:26:16 +00:00
lldb-server.exports Only export public symbols with the cmake build. 2015-09-04 00:00:41 +00:00