HP WDB GUI 5.8 Reference Manual ( February 2008 )

Debugging with WDB GUI
Advanced Thread Debugging Support
Chapter 3 83
1. To view information about the threads, select the Threads tab. This displays all the
current threads in the application that is being debugged.
2. To enable advanced thread debugging, right click on the Threads view and select the
Advanced Thread View option. This dynamically adds the Mutex tab, the R/W Locks
tab, and the Cond Var tab to the debug view. You can also select Tools->Advanced
Thread View to enable advanced thread debugging.
The Advanced Thread View must be enabled before loading the application for viewing
information on individual threads and pthread primitives like read-write locks, mutexes
and conditional variables.
3. To view extended information on a specific thread, right-click on the required thread and
select the Thread Info option.
Support for info mutex and info mutex <mutex-id>
The Advanced Thread View must be enabled before loading the application for viewing
extended information on mutexes.
To view information on the state of the current mutexes in the application, complete the
following steps:
1. To view information about mutexes, select the Mutex tab. This displays all the current
mutexes in the application that is being debugged. To view this information in a new
window, right-click on the Mutex View and select the Open Separate Window option.
2. To view information about a specific mutex, right click on the required mutex and select
the Mutex/Thread Info option. This information is displayed in a separate window.
Support for info rwlock and info rwlock <rwlock-id>
The Advanced Thread View must be enabled before loading the application for viewing
extended information on in read write locks.
To view information on the state of the current read-write locks in the application, complete
the following steps:
1. To view information about read-write locks, select the R/W Locks tab. This displays all
the current read-write locks in the application that is being debugged. To view this
information in a new window, right-click on the R/W Locks View and select the Open
Separate Window option.
2. To view information about a specific read-write lock, right click on the required
read-write lock and select the RW Lock /thread Info option. This information is
displayed in a new window.