open jdk debug options

Neo Jia neojia at
Tue Oct 7 21:54:57 PDT 2008

I have done that long time ago (last Summer) but it is definitely
doable with gdb. But, you have to enable "+ggdb3" to get all the C++


On Tue, Oct 7, 2008 at 7:06 PM, Cong Wang <jameswang99 at> wrote:
> Hi all:
>   I am trying to modify some part of the hotspot runtime interpreter
> and I would like to debug that using either dbx or gdb. I have compile
> the file using the following options:
> ALT_BINARY_PLUGS_PATH=/scratch/wang/openjdk-binary-plugs
> ALT_FREETYPE_LIB_PATH=/usr/local/lib
> ALT_FREETYPE_HEADERS_PATH=/usr/local/include
> ALT_CUPS_HEADERS_PATH=/scratch/wang/cups-1.3.8
> ANT_HOME=/usr/sfw
> ALT_OUTPUTDIR=/scratch/wang/java_tm_7
> DEV_ONLY=true
> DEBUG=true
>    I am not able to use dbx to debug java in the ALT_OUTPUTDIR/bin
> directory. I would like to set a break point at
> hotspot/src/cpu/sparc/vm/assembler_sparc.cpp
> MacroAssembler::compiler_lock_object function. I have tried to use the
> dbx pathmap command but it doesn't seem to help dbx to locate the
> source file or the function definition.
>   Any suggestions? Thanks in advance for any comment.
> --
> Regards
> James Wang

I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!

More information about the hotspot-dev mailing list