How to debug an Dalvik executable on Android with GDB?

我们两清 提交于 2019-12-09 05:04:26

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/5945086/how-to-debug-an-dalvik-executable-on-android-with-gdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!