Tools: Debugging Native and Java Code with WDB
Page 88
Tools for
Debugging
© 2001 Hewlett-Packard Company
gdb
Debugging a Core File, 4
(gdb) thr 10 - Example to show that you can look at other threads
[Switching to thread 10 (system thread 28979)]
#0 0xc01f28d0 in __ksleep () from /usr/lib/libc.2
(gdb) bt
#0 0xc01f28d0 in __ksleep () from /usr/lib/libc.2
#1 0xc15c8298 in _lwp_cond_timedwait () from /usr/lib/libpthread.1
#2 0xc15c7fd4 in pthread_cond_wait () from /usr/lib/libpthread.1
#3 0xc40d5ad0 in Monitor::wait ()
from /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
#4 0xc4160f54 in VMThread::execute ()
from /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
#5 0xc4106678 in Scavenge::invoke_and_allocate ()
from /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl
#6 0xc41561dc in Universe::clear_allocate_local ()
from /opt/java1.3/jre/lib/PA_RISC2.0/server/libjvm.sl