[英]How to debug an Dalvik executable on Android with GDB?
I want to debug an android application using GDB, I do not have the source code and I am used to GDB. 我想使用GDB调试一个Android应用程序,我没有源代码,我习惯了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...
看来我需要附加到应用程序的进程并使用gdbserver,但我还没有找到一个关于如何做到这一点的好教程...
Thanks! 谢谢!
There might not be step-by-step tutorials, but people have been using a gdbserver to debug JNI apps. 可能没有逐步的教程,但人们一直在使用gdbserver来调试JNI应用程序。 Check the following links:
检查以下链接:
http://honeypod.blogspot.com/2008/01/debug-native-application-for-android.html 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://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://developer.download.nvidia.com/tegra/docs/android_gdb_debugging.pdf
http://www.omappedia.org/wiki/Android_Debugging#GDB_.28the_GNU_Debugger.29 http://www.omappedia.org/wiki/Android_Debugging#GDB_.28the_GNU_Debugger.29
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.