Debug Info in class files

Mani Sarkar sadhak001 at gmail.com
Fri Dec 28 01:47:09 UTC 2012


Hi guys,

I have been following this thread and would like to see some examples
on using the below (-g and/or DEBUG_CLASSFILES=true options when
running the make command with the new build-infra system).

>Most of the classes in the jdk will not be compiled with -g option by
>default. If you build openjdk yourself, you can force debug info in
>classes by setting DEBUG_CLASSFILES=true when running make.

>/Erik

>On 2012-12-26 13:12, miten mehta wrote:
>>* Hi,*>>**>>* I was using eclipse ide to remote debug tomcat web app which used oracle jdk 7.  The ide was unable to open source for kerberos classes.  I learned that not all source is available in src.zip of oracle jdk.*>>**>>* I then tried to use openjdk source while debugging against oracle jdk but then I observed few things like for certain classes the local variables info was not available (may be because the classes for them were not compiled with -g option to add debug info).  Now eclipse pulls up source for those kerberos/gss related classes but I cannot really get to debug what ever I want since lot of information is not available.*>>**>>* how can I use openjdk to resolve this issue since I know there are instructions to install/build open jdk on debian but then will the class have debug info unlike oracle one ?*>>**>>* Regards,*>>**>>* Miten.*


I have also come across a blog on java.net which talks about fastdebug and
product builds and suggests to do the following

*SKIP_DEBUG_BUILD=true SKIP_FASTDEBUG_BUILD=false DEBUG_NAME=fastdebug* for
a fastdebug build

and

*SKIP_DEBUG_BUILD=true SKIP_FASTDEBUG_BUILD=true* for a product build

Are they flags still valid with the new build-infra system, should they be
accompanied by any other settings (any configure related commands). Where
should we expect the build artefacts to be created? Are there any flags to
build a full debug of the Hotspot? Examples on how to use these flags to
achieve the three respective types of builds would definitely be helpful.

Whats the difference between a full debug, fastdebug and product build in
terms of the build process and the end-output?

Miten, if you are still following this thread, please feel free to join the
Adopt OpenJDK project as suggested by Ben by going to
http://java.net/projects/adoptopenjdk. The wiki and other links should help
you get started.

Thanks,
Mani

-- 
Twitter: @theNeomatrix369
Blog: http://neomatrix369.wordpress.com <http://neomatrxi369.wordpress.com>

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*



More information about the build-dev mailing list