diff options
author | David Spickett <david.spickett@linaro.org> | 2020-11-24 14:01:29 +0000 |
---|---|---|
committer | David Spickett <david.spickett@linaro.org> | 2020-11-30 11:20:39 +0000 |
commit | a7f8d96b16a394a87230d592c727906f67a4ba07 (patch) | |
tree | df37f881d835e62c9f2bb04c4cc7bfe2ddda9fce /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 83d79ca5bf13ca37f4ab69f24004ca83c1d03ea4 (diff) | |
download | llvm-a7f8d96b16a394a87230d592c727906f67a4ba07.zip llvm-a7f8d96b16a394a87230d592c727906f67a4ba07.tar.gz llvm-a7f8d96b16a394a87230d592c727906f67a4ba07.tar.bz2 |
[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
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions