[LLDB] Make remote-android local ports configurable
authorLuka Markušić <markusicluka@gmail.com>
Wed, 26 Oct 2022 08:02:47 +0000 (08:02 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 26 Oct 2022 08:14:22 +0000 (08:14 +0000)
commit1e210abf9925ad08fb7c79894b4ec5ef8f0ef173
tree860d23c6e429a934dd43716462a3807bebed3c50
parent63390dccd86d42387abdd0adf11417ae1ec3d4ae
[LLDB] Make remote-android local ports configurable

The local ports for `platform connect` and `attach` were always random, this allows the user to configure them.
This is useful for debugging a truly remote android (when the android in question is connected to a remote server).

There is a lengthier discussion on github - https://github.com/llvm/llvm-project/issues/58114

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D136465
lldb/docs/use/remote.rst
lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h