The environment variable ANDROID_ADB_SERVER_PORT can be defined to have
adbd litsen on a different port. Teach lldb how to understand this via
simply checking the env var.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Should we do this via a "settings set" setting instead of an environment variable? This would make it easier to test running a test suite kind of situation.
Also is this the server that runs on the host machine where LLDB resides, or remotely on the device? If this is something that would be done at "platform connect" time, each platform can have its own unique options and arguments to "platform connect". Might be better to just add them as options to the "platform connect" command. Something like:
(lldb) platform connect --adb-port 5037 --adb-path /path/to/adb --device MyPixel2
Added Pavel since he previously worked on Android LLDB at Google. Pavel, please add any additional reviewers to this patch that you think might be interested.
This looks good. I believe @srhines is the best person to review android-related things right now. I can also help with the lldb side of things.