Debugging a Native app, using ndk-gdb. I get the following, when I step through the code.
(gdb) n
Single stepping until exit from function my_current_function_name,
which has no line number information.
So, I'm unable to debug the app. The debugger directly steps until it finds a function with line-number information.
Our project is structured with all the core application code, in a separate project, which will be first compiled into a shared-library (.so file). Then, we build the project, which links the shared library and generates the APK file. The code in the JNI folder has been built with the line-number info. But, the code in the separate project, which is compiled using androideabi-gcc, into a .so file, doesn't have the line-number info.
Edit: Forgot to mention that "-g -ggdb" flags are already there in the Makefile. This issue is seen in-spite of these flags.