当我发布gdbjava时,我看到它正确地读取符号,但是当我要求列出它抱怨main.c找不到的代码时。Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentationReading symbols from java...Reading symbols from /u
An error occurred: JVM library is not found (did you set JAVA_HOME environment variable?)sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/jdk-11.0.2/binJAVA_HOME