Using libjvm.diz in gdb
Dmitry Samersoff
Dmitry.Samersoff at oracle.com
Mon Aug 20 13:28:43 PDT 2012
Douglas,
Please, try:
b main
r
*then*
b methodDataOop.cpp:870
You try to set breakpoint but libjvm.so is not loaded yet.
-Dmitry
On 2012-08-21 00:15, Douglas Simon wrote:
> I've just encountered the new Full Debug Symbols support in HotSpot and am having trouble using it with gdb. When I start gdb on a debug build (i.e. jvmg) of HotSpot, I also load the unzipped libjvm.diz file as follows:
>
> ~/linz/graalvm$ gdb jdk1.7.0_06/debug/bin/java
> (gdb) symbol-file /mnt/ubuntu-10.04/home/dsimon/linz/graalvm/jdk1.7.0_06/debug/jre/lib/amd64/graal/libjvm.debuginfo
> Reading symbols from /mnt/ubuntu-10.04/home/dsimon/linz/graalvm/jdk1.7.0_06/debug/jre/lib/amd64/graal/libjvm.debuginfo...done.
> (gdb) b methodDataOop.cpp:870
> Cannot access memory at address 0x573d06
>
> Naturally, the program never stops at the line where I'm trying to set the breakpoint.
>
> What am I doing wrong? Is there some information on how one is supposed to use FDS for debugging under gdb (or dbx)?
>
> -Doug
>
--
Dmitry Samersoff
Java Hotspot development team, SPB04
* There will come soft rains ...
More information about the hotspot-dev
mailing list