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

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 14 23:28:07 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43001

            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 at lists.llvm.org
          Reporter: mryusolo at live.com
                CC: jdevlieghere at apple.com, llvm-bugs at 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?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190815/11e5f974/attachment.html>


More information about the llvm-bugs mailing list