In This Book

Debugging Multi-Threaded Applications

HP/DDE supports the debugging of multi-threaded applications that are implemented with HP DCE threads. (The Softbench version of the debugger for Solaris systems supports Solaris Threads.)

HP/DDE thread support includes:

A Threads dialog box for monitoring, examining, and manipulating threads

Support for setting breakpoints on speci￿c threads in the Breakpoint Set/Change dialog box

A thread id identi￿er that allows speci￿cation of individual threads

A thread component added to the debugger's concept of environment

Thread-speci￿c commands and options

You can prepare and invoke a multi-threaded application for debugging like any other target program. See \Preparing the Target Program" in Chapter 2 for more information on preparing and invoking target programs for debugging.

Multi-threaded applications may execute quite di￿erently when they are invoked by the debugger because the debugger takes control of the thread scheduler. Some debugger commands, lik e step and thread -select , override the thread scheduler.

See Programming With Threads on HP-UXfor more information about HP DCE threads.

8-6 Debugging in Special Situations