Debugging with GDB (February 2008)

Table Of Contents
178 Debugging with GDB
java args <frame-number>
Prints the current or specified Java frame arguments information
java bytecodes <methodOop>
Disassembles the given Java method bytecode
java heap-histogram
Displays the Java heap object histogram
java instances <klassOop>
Locates the instances of the given klassOop in the Java heap.
java jvm-state
Prints current status of JVM internal states
java locals
Prints the current or specified Java frame locals information
java mutex-info
Prints details of static mutexes
java object <object-ptr>
Prints the given Java object field information
java oop <Java_heap_address>
Locates Java object oop of the given Java heap address
java references <oop>
Locates references to the given Java object in the Java heap
java unwind-info <pc>
Prints unwind information of the code where the PC is located
java unwind-table
Prints the dynamically generated Java Unwind Table
14.21.3 Support for stack traces in Java, C, and C++ programs
HP WDB shows stack traces of mixed Java, C, and C++ programs. The stack trace
functionality requires Java SDK version 1.3.1.02 or later for HP-UX. To find the
availability of Java SDK version 1.3.1.02 or later, go to the HP web site for Java,
http://www.hp.com/go/java.
To enable this feature, set the environment variable, GDB_JAVA_UNWINDLIB, to the path
to libjunwind.sl. This library is part of the Java SDK version 1.3.1.02 or later for
HP-UX. When GDB_JAVA_UNWINDLIB is set to the path for a valid Java unwind library,
stack traces display Java and C/C++ frames.
The types of Java frames supported are as follows:
Interpreter
Compiled frames
Adapter frames