From owner-p4-projects@FreeBSD.ORG Mon May 10 07:52:53 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8AE2316A4D1; Mon, 10 May 2004 07:52:53 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38B8D16A4CE for ; Mon, 10 May 2004 07:52:53 -0700 (PDT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D61D43D45 for ; Mon, 10 May 2004 07:52:52 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 15668 invoked from network); 10 May 2004 14:38:14 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 10 May 2004 14:38:14 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i4AEc9db097548; Mon, 10 May 2004 10:38:10 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Marcel Moolenaar Date: Mon, 10 May 2004 10:38:35 -0400 User-Agent: KMail/1.6 References: <200405080517.i485H87U065177@repoman.freebsd.org> In-Reply-To: <200405080517.i485H87U065177@repoman.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200405101038.35521.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Perforce Change Reviews Subject: Re: PERFORCE change 52492 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 14:52:54 -0000 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org