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

Table Of Contents
1. Set LD_LIBRARY_PATH to include the appropriate directory, by entering one of the
following commands:
For 32 bit IPF applications,
export LD_LIBRARY_PATH=/opt/langtools/wdb/lib/hpux32
For 64 bit IPF applications,
export LD_LIBRARY_PATH=/opt/langtools/wdb/lib/hpux64
For 32 bit PA applications,
export LD_LIBRARY_PATH=/opt/langtools/wdb/lib
For 64-bit PA applications,
export LD_LIBRARY_PATH=/opt/langtools/wdb/lib/pa20_64
2. Set the environment variable PTHR_TRACE_ENABLED to on as export
PTHR_TRACE_ENABLED=on
3. Complete one of the following steps to preload the librtc runtime library:
Set the target application to preload librtc by using the +rtc option for the
chatr command. In addition to automatically loading the librtc library, the
+rtc option for the chatr command also maps the shared libraries as private.
To enable or disable the target application to preload the librtc runtime
library, enter the following command at the HP-UX prompt:
$ chatr +rtc <enable|disable> <executable>
NOTE: The chatr +rtc option preloads the librtc runtime library from
the following default paths:
For 32 bit IPF applications,
/opt/langtools/lib/hpux32/librtc.so
For 64 bit IPF applications,
/opt/langtools/lib/hpux64/librtc.so
For 32 bit PA applications,
opt/langtools/lib/librtc.sl
For 64-bit PA applications,
/opt/langtools/lib/pa20_64/librtc.sl
To preload the librtc runtime library from a path that is different from the
default paths, you must use the LD_PRELOAD environment variable.
14.11 Thread Debugging Support 183