HPlogo Debugging threads with HP Wilde Beest Debugger

Advanced Thread Debugging Support

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

Advanced thread debugging support is available for multi-threaded applications running on HP-UX 11iv2, or HP-UX 11iv3.

HP WDB 5.5 and later versions provide advanced thread debugging features to display extended information on the state of pthread primitives such as mutexes, read-write locks and conditional variables.

Enabling and Disabling Advanced Thread Debugging Features

The Advanced Thread Debugging features are available as options to the set thread-check command. The syntax for the set thread-check command is as follows:

set thread check

The set thread-check command enables or disables advanced thread de-bugging. This feature is off by default. The set thread-check command must be enabled prior to running the application under the debugger, to force the underlying runtime system to collect information on pthread primitives.

The advanced thread debugging features are available only if the set thread-check command is set to on.

Prerequisites for Advanced thread debugging feature in HP WDB

  • HP-UX 11i v2 and later versions of OS on both PA-RISC and Integrity systems support the advanced thread debugging features.

  • The thread debugging feature depends on the availability of the dynamic linker B.11.19 and later versions.

  • The advanced thread debugging commands work only if thread-check is set to on.

  • Advanced thread-debugging requires the pthread tracing library. The pthread tracer library is available by default in systems running on HP-UX 11i v2 or later. HP WDB 5.5 and later versions 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.

  • HP WDB uses librtc.sl to enable thread debugging support. If the debugger is available in a directory other than the default /opt/langtools/bin directory, use the environment variable, LIBRTC_SERVER, to export the path of the appropriate version of librtc.sl.

  • For PA-RISC 32 bit applications, enable the dynamic path look-up for advanced thread debugging.

  • The chatr +rtc feature requires linker version B.11.66 and later on HP 9000 systems, and linker version B.12.51 and later on Integrity systems.

NOTE: To enable dynamic library path look-up for advanced thread debugging, enter the following command at HP-UX prompt:
# chatr +s enable <PA32-bitApp>

This command automatically enables dynamic library path look-up.

© 2008 Hewlett-Packard Development Company, L.P.