我如何在 android? 上调试 adbd

发布于 2024-12-10 01:06:49 字数 122 浏览 1 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

只是一片海 2024-12-17 01:06:50

我已经发现了。

只需将 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 ?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文