我如何在 android? 上调试 adbd
adbd 是设备上运行的守护进程。运行了很长时间后,我发现adbd可能 接收 sigsegv 信号,但这不会记录在 logcat 中。我尝试使静态库共享库,但这没有帮助。
有办法调试adbd吗?
adbd is the daemon process running on the device. After a long time running, I found adbd may
receive a sigsegv signal, but this will not be logged in logcat. I have try to make the static libs shared libs, but that does not help.
Is there anyway to debug adbd?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经发现了。
只需将 debugger.c 的操作复制到 adbd 中,收到信号后,只需创建一个套接字连接到 debuggerd,并告诉它你的 pid,它就会跟踪你的错误堆栈。然后在logcat中,
你可以找到错误。
但我真的很感兴趣原始开发人员如何调试 adbd ?
I have found out that.
Jut copy what debugger.c does to adbd, after receive the signal, just make a socket connect to the debuggerd, and tell it your pid, and it will track you error stack. Then in the logcat,
you can find the error.
But I am really intersted how the orignal developers debug adbd ?