Saturday, March 16, 2013

Debug android NDK

I have been trying to debug my android application for a few weeks now, and was unable to set breakpoints.
I finally figured out that there is a bug in the NDK, following the steps in this article link
To be able to set breakpoints I had to only build only one version of the shared libraries to avoid the linker from choosing the wrong shared library. Basically I had to change the file with the following:
APP_ABI := armeabi armeabi-v7a
APP_ABI := armeabi #armeabi-v7a
Now I can continue using breakpoints within the android NDK.