I’ve got problem with debugging native code on my Android-device. While I was debugging samples from NDK everything was good. But after I had included to my project C++ library breakpoints stopped working. When I try to set breakpoint messgae box from GDB appears (see attachement) which shows that timeout is too long.
Library is used for reading/writing special file format and rendering it using OpenGL. This library is very big, size of corresponding “.so” file equals to 18 Mb after library is built. Are there any ideas why breakpoints has been broken? Can size of JNI library cause this? Are there any limitation on JNI library size?
The Android GDB provided by Google is VERY slow. If your library size is 18MB, it might take several minutes to load the symbols. When VisualGDB displays this warning, the operation is still running in the background, so the window will disappear after some time.