美文网首页
Android debugger ptrace 的处理

Android debugger ptrace 的处理

作者: Hemsl | 来源:发表于2021-08-13 14:19 被阅读0次

代码位置:
system/core/debuggerd/debuggerd

gdb调试:

# server
gdbserver64 --attach  0.0.0.0:9999 pid

# client
cd Android\Sdk\ndk-bundle\prebuilt\windows-x86_64\bin
.\gdb.exe
target remote 18.163.215.190:9999

strace查看系统调用:

strace  -T -tt -e trace=all -p pid
strace  -o output.txt  -T -tt -e trace=all -p pid

相关文章

网友评论

      本文标题:Android debugger ptrace 的处理

      本文链接:https://www.haomeiwen.com/subject/xsgdbltx.html