LLDB在Android上使用LLDB-Server进行调试?
我目前没有PC。我有两个扎根设备ARM64
带有debian rootfs的主机设备和要调试的设备,其中包含lldb-server二进制armv7
。我正在尝试使用LLDB远程调试我的Android设备。我从àndroidndk24中取出lldb-server
二进制文件,然后将其放入/data/local/tmp
中。安装debian
SID
on 另一个术语
和apt
安装lldb
。
然后,我使用带有Linux rootfs的主机对客户端设备(带有lldb-server
)进行了热点。
我在服务器设备上运行的命令
./data/local/tmp/lldb-server platform --listen "*:2000" --server
使用NetStat
检查,LLDB-Server已绑定到
主机上的所有地址(0.0.0.0.0.0.0.0.0.2000
)(客户端LLDB < /code>)
Debian Sid
终端I RAN中的设备:
apt install lldb
lldb
platform select remote-android
platform connect connect://192.168.201.132:2000
然后我得到错误失败连接端口
。
但是,使用gdb
和gdbserver
一切正常。我尝试在Debian Buster
上安装lldb
,但结果相同,甚至运行了lldb-server
bones上的二进制文件(设备带有debian sid
),但结果相同。现在我被困在这里。我该如何解决?
帮助您将不胜感激。谢谢。
I currently dont have a pc. I have two rooted devices Arm64
host device with Debian rootfs and the device to be debugged which contains the lldb-server binary armv7
. I am trying to remote debug my android device using lldb. I pulled the lldb-server
binary from àndroid ndk24 and put it in /data/local/tmp
. Installed Debian
Sid
on Another term
and apt
installed lldb
.
I then wifi hotspoted the client device(one with lldb-server
) using the host with the linux rootfs.
The commands i ran on server device
./data/local/tmp/lldb-server platform --listen "*:2000" --server
Checked using netstat
and the lldb-server had bound to all addresses(0.0.0.0:2000
)
On host(client lldb
) device in debian sid
terminal i ran:
apt install lldb
lldb
platform select remote-android
platform connect connect://192.168.201.132:2000
Then i get error failed connect port
.
However, using Gdb
and gdbserver
everything worked perfectly. I have tried installing lldb
on debian buster
but same result and even ran the lldb-server
binary on the host(device with debian sid
) but same result. Right now im stuck here. How do I solve this?
Help will be greatly appreciated. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道为什么,但是
lldb-server
平台命令被打破(在我的情况下为MABE),应该使用lldb-server gdbserver
这样:on
lldb--- Server GDBSERVER
命令,该存根不允许其他IP的连接,除了它绑定的一个,因此这样做:ON
lldb
客户端确实进行正常的远程调试。
编辑:
使用LLDB平台命令连接到Android设备时,使用LLDB客户端的机器应安装ADB。 ADB服务器应在端口5037上运行,并连接一个客户端。如果您有ADB,则可以使用
其他使用
gdb-remote
命令。I dont know why, but
lldb-server
platform command is broken(mabe in my case) and should have usedlldb-server gdbserver
like this:On
lldb-server gdbserver
command, the stub doesnt allow connections from other ips except the one it is bound to so do this:On
lldb
client doThen do normal remote debugging.
EDIT:
When using the lldb platform command to connect to an android device, the machine with the lldb client should have adb installed. The adb server should be running on port 5037 and have one client connected. If you have adb then you can use
else use
gdb-remote
command.