Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
The thread terminates execution without unlocking the associated mutexes or
read-write locks.
The thread waits on a condition variable for which the associated mutex is not
locked.
The thread terminates execution, and the resources associated with the terminated
thread continues to exist in the application because the thread has not been joined
or detached.
The thread uses more than the specified percentage of the stack allocated to the
thread.
The number of threads waiting on any pthread object exceeds the specified thresh-
old number.
14.11.3.1 Pre-requisites for Advanced Thread Debugging
The following pre-requisites apply for advanced thread debugging:
The advanced thread debugging features are supported only on HP-UX 11i v2 and
later on both PA-RISC and Integrity systems.
The tracing pthread library is required for advanced thread-debugging. The
pthread tracer library is available by default on systems running on HP-UX 11i v2
or later. You must install HP WDB 5.5 or later versions of the debugger to support
enhanced thread debugging. The installation scripts for HP WDB 5.5 and later
versions of the debugger automatically add links at /opt/langtools/lib/ to
replace the standard libpthread library with libpthread tracer library at
run time.
The thread debugging feature in HP WDB is dependent on the availability of the
dynamic Linker Version B.11.19.
HP WDB uses librtc.sl to enable thread debugging support. If the debugger is
installed in a directory other than the default /opt/langtools/bin directory,
you must use the environment variable, LIBRTC_SERVER, to export the path of the
appropriate version of librtc.sl.
HP WDB does not support debugging of programs that link with the archive version
of the standard C library libc.a or the core library libcl.a. The programs must
be linked with libc.sl.
The advanced thread debugging commands work only if set thread-check is
set to on.
For PA-RISC 32-bit applications, the dynamic library path look-up must be enabled
for advanced thread debugging. To enable dynamic library path look-up for
advanced thread debugging, enter the following command at HP-UX prompt:
# chatr +s enable <PA32-bitApp>
178 HP-UX Configuration-Specific Information