From owner-freebsd-threads@FreeBSD.ORG Fri Sep 5 01:56:40 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4398106568E for ; Fri, 5 Sep 2008 01:56:40 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D4C128FC0A; Fri, 5 Sep 2008 01:56:40 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m851udqh079261; Fri, 5 Sep 2008 01:56:40 GMT (envelope-from davidxu@freebsd.org) Message-ID: <48C0923F.6080608@freebsd.org> Date: Fri, 05 Sep 2008 09:58:23 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20080612) MIME-Version: 1.0 To: Julian Elischer References: 488A213F.70105@netapp.com <48C06F77.6000006@elischer.org> In-Reply-To: <48C06F77.6000006@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: libpthread and gdbserver X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Sep 2008 01:56:41 -0000 Julian Elischer wrote: > just saw youe email to freebsd-threads... > > > ----- > > But pt_ta_map_lwp2thr() internally calls pt_ta_map_id2thr() in > libthr_db.c so 'pid to tid' conversion is missing. > If FreeBsd intends to keep it this way, I will have to modify gdbserver > to not use 'pid' to find threads as Linux does. > Can someone shed some light on this? Am I mailing the correct > mailing-list with these queries? > > ----- > > you might try directly mailing davidxu or marcel or jhb (all > @freebsd.org). they SHOULD have seen that posting but may not have.. > > jhb is I think away for a few days. > but was doing stuff with the debugger quite recently. > Our thread has its kernel thread id, it is called lwpid, this is not linux like pid, I know linux thread is a special process.