Sun Studio 12: Debugging a Program With dbx

Viewing the Context of Another Thread

To switch the viewing context to another thread, use the thread command. The syntax is:

thread [-blocks] [-blockedby] [-info] [-hide] [-unhide] [-suspend] [-resume] thread_id

To display the current thread, type:


To switch to thread thread_id, type:

thread thread_id

For more information on the thread command, see thread Command.