How to get ndk-gdb working on Android?
You don’t need to use -O0 or -g switches. You need to do one of following: put android:debuggable=”true” to the <application> tag in AndroidManifest.xml file use NDK_DEBUG=1 after ndk-build put APP_OPTIM := debug in Application.mk file Doing anyone of these three things will automatically use -O0 and -g switches. Can you try running gdb manually, … Read more