How to debug an App on Android with GDBSERVER?

Posted by cjserio on Stack Overflow See other posts from Stack Overflow or by cjserio
Published on 2010-01-13T12:57:45Z Indexed on 2010/05/07 19:58 UTC
Read the original article Hit count: 259

Filed under:
|
|
|
|

I'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command.

There's a million blog hits on this topic but none of them seem to be clear as to how you launch your app. They all say to just type "gdbserver 10.0.2.2:1234 ./MyProgram" but what exactly is "MyProgram". Is that MyProgram.apk? Is it MyProgram.so? Is it some other file that gets created when the app is installed? If so, what's its path?

© Stack Overflow or respective owner

Related posts about android

Related posts about gdb