[Bug 43001] New: lldb can not launch process on android

Bug ID 43001
Summary lldb can not launch process on android
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mryusolo@live.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

we use llvm cross compile with NDK(android-ndk-r16b), compile command:
 ./make-standalone-toolchain.sh --arch=arm --platform=android-26 --stl=libc++
--install-dir=/usr/local/cross-toolchain
--toolchain=arm-linux-androideabi-clang5.0

compile success and then it can generate lldb-server, and liblldb.so etc, so we
use QT to develop our android app, and in our code we use SBDebugger api to
launch another app in android phone,lldb-server is pushed to phone, but
SBDebugger cannot launch process, check the code find out that lldb-server is
not launched, we download android studio, and use the lldb-serrver shared lib
in its IDE to replace ours, and find that it can be started, but still
SBDebugger cannot launch app. When we use the android studio to debug app, we
find the lldb-server which android studio used is an executable application in
its bin\ directory , but the lldb-server we compiled is a shared lib,  and
android studio can use its lldb to remote debug android app. so the question
is:
1.Is lldb-server which came out from cross-chain avaiable on android phone, how
to use it?
2.Is SBDebugger api can be used to remote debug android app , is there any
environment problem we need to consider?