Bug ID 43017
Summary Can’t the SBDebugger API be used directly on android?
Component All Bugs
CC email@example.com, firstname.lastname@example.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!