Normally, you need not be aware of LWPs. There are times, however, when 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 next item represents the LWP state.
in function_name() identifies the function that the LWP is currently executing.
Use thelwp Command to list or change the current LWP.