[lldb-dev] [Bug 43017] New: Can't the SBDebugger API be used directly on android?

via lldb-dev lldb-dev at lists.llvm.org
Fri Aug 16 02:33:07 PDT 2019


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

            Bug ID: 43017
           Summary: Can't the SBDebugger API  be used directly on android?
           Product: lldb
           Version: 8.0
          Hardware: Other
                OS: other
            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

I want to use the LLDB SBDebugger API to create a debugger, create targets, set
breakpoints, load processes, and use the SBDebugger API to get stack
information.
On linux:
 SBDebugger::Initialize();
 SBDebugger debugger = SBDebugger::Create();
 SBTarget target = degugger.CreateTarget(); 
Then create breakpoint and set some parameters, 
 target.Launch();
In this way, the stack information can be successfully obtained.

However, on android, there is apk,xx.so in the android installation directory.
We don't know what the filename of CreateTarget is set when creating the
target. Obviously, both apk and xx.so are wrong.But we still try the apk,
because on android is also made of the elf format reads the target information,
the format of the apk is not the elf, and then try the xx. So, read the target
information is correct, but in GDBRemoteCommunication: :
StartDebugserverProcess program in the Lord, then using the androidstudio LLDB
- server, process Launch  success, but there is no stack information.

Can I use the SBDebugger API to directly debug on android? 

Please help me, thank you!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190816/ce6749e6/attachment.html>


More information about the lldb-dev mailing list