4

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 Answer 1

3

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

Sign up to request clarification or add additional context in comments.

2 Comments

I want to debug a Dalvik executable though, but thanks for the answer (I just changed the title).
@Bookix try the omappedia method (last link)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.