有人能指导一下如何在Linux上使用GDB调试器调试JNI代码吗(如果可能,请提供其他选项)。
-My JNI project when running on Linux is leading to a JVM crash.
-The CPP code has been compiled into .so files.
-I run the project like this : *java xyz.jar -commandline_args_to_project*.
我已经安装了Gdb,但不知道如何使用它来调试项目。 另外,我是否必须使用-g选项编译.cpp文件才能调试.so文件?