LLDB's machine interface driver.
Remote debugging patches for Eclipse.
Set lldb-mi executable to /path/to/lldb-mi/scripts/lldb-mi-android.sh.
Target app selection is made in lldb-mi-android.sh.
Target connection is configured in .lldbinit-android (referenced in lldb-mi-android.sh).
Copy /path/to/android-prebuilts-clang/clang-r536225/runtimes_ndk_cxx/aarch64/lldb-server to target:/vendor/bin/.
cd ~/src
[ -e lldb-mi ] || git clone https://github.com/roman-rybalko/lldb-mi
[ -e android-prebuilts-clang ] || git clone https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86 android-prebuilts-clang
git -C android-prebuilts-clang reset --hard 83f45ec8e6a3ed11aa54955f8e56420462f55131
./lldb-mi/scripts/clang-fix.sh
./lldb-mi/scripts/build.shOn some architectures (e.g. Linux, x86-64), LLDB dynamic library fails to determine its location. That results in the inability to locate a gdbserver stub:
process launch failed: unable to locate lldb-serverThe workaround is to set LLDB_DEBUGSERVER_PATH environment variable before running lldb-mi.