如何使用 GDB 在 Android 上调试 Dalvik 可执行文件?
我想使用GDB调试Android应用程序,我没有源代码并且我习惯了GDB。有人知道该怎么做吗?看来我需要附加到应用程序的进程并使用 gdbserver,但我还没有真正找到关于如何做到这一点的好教程...
谢谢!
I want to debug an android application using GDB, I do not have the source code and I am used to GDB. Would anyone know how to do that? It seems I would need to attach to the process of the application and use gdbserver but I have not really found a good tutorial on how to do that...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能没有分步教程,但人们一直在使用 gdbserver 来调试 JNI 应用程序。检查以下链接:
http://honeypod.blogspot。 com/2008/01/debug-native-application-for-android.html
http://vilimpoc.org/blog/2010/09/23/hello-gdbserver-a-debuggable-jni-example-for-android/
http://developer.download.nvidia.com/tegra/docs/android_gdb_debugging。 pdf
http://www.omappedia.org/wiki/Android_Debugging# GDB_.28the_GNU_Debugger.29
There might not be step-by-step tutorials, but people have been using a gdbserver to debug JNI apps. Check the following links:
http://honeypod.blogspot.com/2008/01/debug-native-application-for-android.html
http://vilimpoc.org/blog/2010/09/23/hello-gdbserver-a-debuggable-jni-example-for-android/
http://developer.download.nvidia.com/tegra/docs/android_gdb_debugging.pdf
http://www.omappedia.org/wiki/Android_Debugging#GDB_.28the_GNU_Debugger.29