Tools: Debugging Native and Java Code with WDB

Page 86
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Debugging a Core File, 2
$ export GDB_JAVA_UNWINDLIB=/tmp/libjunwind.sl
$ gdb /opt/java1.3/bin/PA_RISC2.0/native_threads/java --core=core
Need to:
Specify correct path to executable
Might be installed elsewhere
Could be a 1.0 machine (PA_RISC in the path above)
Have correct libraries (including system libraries) on the system
Can use gdb’s GDB_SHLIB_PATH environment variable
HP gdb 3.0 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.0 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for
warranty/support.
..(no debugging symbols found)... Ignore these
Core was generated by `java'.
Program terminated with signal 6, Aborted.