From owner-freebsd-threads@FreeBSD.ORG Wed Apr 14 01:10:24 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 372F216A4CE; Wed, 14 Apr 2004 01:10:24 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5FD643D4C; Wed, 14 Apr 2004 01:10:23 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc13) with ESMTP id <20040414081022016003g9que>; Wed, 14 Apr 2004 08:10:23 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id BAA30240; Wed, 14 Apr 2004 01:10:21 -0700 (PDT) Date: Wed, 14 Apr 2004 01:10:20 -0700 (PDT) From: Julian Elischer To: David Xu In-Reply-To: <407C9584.10805@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@FreeBSD.org Subject: Re: [Fwd: cvs commit: src/sys/kern kern_fork.c kern_thr.ckern_thread.c src/sys/sys proc.h] X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 08:10:24 -0000 On Wed, 14 Apr 2004, David Xu wrote: > This commit would change the way how gdb searches a thread by using > ptrace interface > in my thread debugging patch: > http://people.freebsd.org/~davidxu/kse/thread_db > the patch is now supporting libpthread and libthr, however because > libthr is using another type > of thread identify thr_id_t, if I follow the commit, the patch won't > work, libthr and its interfaces > need to be changed to use integer tid, libpthread won't be affected > because it never uses kernel > thread id. > > David Xu After discussing this with marcel, this code may change a bit. you only need a TID in the case where sizeof(void *) != sizeof(int)