I want to debug the hotspot source code , such as set some breakpoints in the Native Code,to learn it. So I built the openjdk 9 source code by the Eclipse and successfully, and below is built setting and the output of the built.
Then I tried to configure the "Debug Configurations", however I don't know how to set the c/c++ application, someone advise it to "openjdk/hotspot/build/Linux/linux_amd64_compiler2/jvmg" for JDK 7 , however I cannot find it in the built output folder for jdk 9, I tried to set it to "~/jdk9/build/linux-x86_64-normal-server-fastdebug/jdk/java" then click button "debug" to debug it, however it failed with information "No source code available for main". So my question is 1,)how to do the setting to let me debug the jdk source code successfully? 2,) If there are other places I need to set?
The issue fixed by setting the debug level to slowdebug for the JDK 9
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With