gdb java

Xiaobin Lu Xiaobin.Lu at Sun.COM
Wed Sep 16 10:52:11 PDT 2009


I am not sure about why #9's address is 0x000000, but most likely #2 - 
#8 are JIT compiled code. You should be able to find out what method 
these address points to by specifying -XX:+UnlockDiagnosticVMOptions 
-XX:+PrintNMethods as part of the flags to run your application.

-Xiaobin

On 09/16/09 08:27, ericjoh wrote:
> Hi,
>
> I build the JDK with
> $ DEBUG_BINARIES=true DEBUG_CLASSFILES=true OPTIMIZATION_LEVEL=NONE make ...
>
> When I set a breakpoint (and step one level) I see
>
> (gdb) bt
> #0  jni_GetFieldID (env=0x804fd10, clazz=0x173aa0, name=0x1ae519 "fd", 
>     sig=0x1ae500 "Ljava/io/FileDescriptor;")
>     at
> /home/eric/Java/openjdk_/openjdk/hotspot/src/share/vm/prims/jni.cpp:1626
> #1  0x00198ee8 in Java_java_io_FileInputStream_initIDs (env=0x804fd10, 
>     fdClass=0x173aa0) at
> ../../../src/share/native/java/io/FileInputStream.c:52
> #2  0xb4ff25aa in ?? ()
> #3  0x0804fd10 in ?? ()
> #4  0x00173aa0 in ?? ()
> #5  0x00173a78 in ?? ()
> #6  0x91657a60 in ?? ()
> #7  0x00173aa4 in ?? ()
> #8  0x91658f30 in ?? ()
> #9  0x00000000 in ?? ()
>
> Why can't I see the code at #2, ..., #9 ?
>
> Thanks.
>
> Eric J.
>
>
>
>   



More information about the hotspot-dev mailing list