On Mon, Nov 28, 2005 at 10:02:35AM +1100, James C. McPherson wrote:
> 
> mdb> 0t711::pid2proc | ::print proc_t p_tlist|::findstack -v
> 
> ::pid2proc translates the pid to a proc_t structure, which
> contains an element called "p_tlist" -- a struct kthread_t.
> Struct kthread_t contains at t_pcb[1] the pointer to that
> thread's stack.

You may want to take advantage of the more stable (and semantically
significant) '::walk thread', which takes an optional proc_t parameter:

> 0t711::pid2proc | ::walk thread | ::findstack -v

- Eric

--
Eric Schrock, Solaris Kernel Development       http://blogs.sun.com/eschrock

Reply via email to