Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2004 10:38:35 -0400
From:      John Baldwin <jhb@FreeBSD.org>
To:        Marcel Moolenaar <marcel@FreeBSD.org>
Cc:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   Re: PERFORCE change 52492 for review
Message-ID:  <200405101038.35521.jhb@FreeBSD.org>
In-Reply-To: <200405080517.i485H87U065177@repoman.freebsd.org>
References:  <200405080517.i485H87U065177@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 08 May 2004 01:17 am, Marcel Moolenaar wrote:
> http://perforce.freebsd.org/chv.cgi?CH=52492
>
> Change 52492 by marcel@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@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200405101038.35521.jhb>