On Mon, 22 Apr 2002, Joshua Goodall wrote:
> In a remote kgdb, I have struct proc * for several processes that > are sleeping and I want the kernel backtraces for them. To illustrate: > > (kgdb) set var $p201 = allproc.lh_first->p_list.le_next->p_list.le_next > (kgdb) print $p201->p_pid > $12 = 201 > (kgdb) print $p201->p_xxthread.td_wmesg > $13 = 0xc0247174 "select" > > Now I want a (kernel) backtrace on this; given that I have $p201, > how can I select the appropriate stack frame? > > (recent -current on i386) In recent -CURRENT, you can just use trace <pid> or trace <addressofstack> I have to say that since that since this feature was introduced, life has become a *lot* easier :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Project [EMAIL PROTECTED] NAI Labs, Safeport Network Services To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

