Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Understanding LWP Information

Normally, you need not be aware of LWPs. However, sometimes thread level queries cannot be completed. In these cases, use the lwps command to show information about LWPs.

(dbx) lwps
    l@1 running in main()
    l@2 running in sigwait()
    l@3 running in _lwp_sema_wait()
  *>l@4 breakpoint in Queue_dequeue()
    l@5 running in _thread_start()
(dbx)

    Each line of the LWP list contains the following:

  • The * (asterisk) indicates that an event requiring user attention has occurred in this LWP.

  • The > (arrow) denotes the current LWP.

  • l@number refers to a particular LWP.

  • The LWP state.

  • The name of the function that the LWP is currently executing.

Use the lwp command to list or change the current LWP.