PERFORCE change 52492 for review

John Baldwin jhb at FreeBSD.org
Mon May 10 07:52:54 PDT 2004


On Saturday 08 May 2004 01:17 am, Marcel Moolenaar wrote:
> http://perforce.freebsd.org/chv.cgi?CH=52492
>
> Change 52492 by marcel at marcel_nfs on 2004/05/07 22:16:29
>
> 	Add thread support functions:
> 	o  kdb_thr_first() and kdb_thr_next() are to be used when
> 	   iterating over the threads. Typically one calls these
> 	   to list threads.
> 	o  kdb_thr_lookup() maps a TID onto a struct thread. This
> 	   allows thread selection based on TIDs.
> 	o  kdb_thr_select() is used to switch the current thread.
>
> 	Currently threads that haven't run yet are considered
> 	non-existent. This is mostly done to avoid complexities
> 	caused by not having a valid or complete trapframe.
>
> 	Remove kdb_set_thread().

Cool!  It would be good to have a kdb_proc_lookup() as well I think as some 
places duplicate that code.  However, most places should also now just be 
using tid's rather than pid's anyway.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the p4-projects mailing list