From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 635 invoked by alias); 6 Aug 2004 18:35:59 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 623 invoked from network); 6 Aug 2004 18:35:58 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (142.179.108.108) by sourceware.org with SMTP; 6 Aug 2004 18:35:58 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id B1E2647D91; Fri, 6 Aug 2004 11:35:57 -0700 (PDT) Date: Fri, 06 Aug 2004 18:35:00 -0000 From: Joel Brobecker To: Marcel Moolenaar Cc: Andrew Cagney , "Nathan J. Williams" , gdb-patches@sources.redhat.com Subject: Re: thread ptids when debugging from core file (x86-linux) Message-ID: <20040806183557.GU1192@gnat.com> References: <20040806040959.GL1192@gnat.com> <41131998.2030003@gnu.org> <20040806175818.GR1192@gnat.com> <20040806180811.GA25829@dhcp50.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040806180811.GA25829@dhcp50.pn.xcllnt.net> User-Agent: Mutt/1.4i X-SW-Source: 2004-08/txt/msg00163.txt.bz2 > > So do you think I'll have to dig into the inferior memory for data used > > by the libpthread library to find that information? Is this something > > that would be portable across NPTL versions? Supposing we want to go > > that route, does anybody know where to find some documentation (or some > > code) that exposes the data structures, so I can try digging into them? > > [not strictly Linux, but more genericly] > > But how do you map register contents in the various .reg/# sections to > the right thread if there's no way to correlate .reg/# sections to light- > weight processes? Would this in fact imply that the IDs needs to match? > > Or am I missing something here? If anybody is missing something, it must be me. This is all new territory to me. I'd be interested in seeing how Nathan did it for NetBSD, that would give me some clues. But I think I also need to look closer at the NPTL and core files... I'm still not sure that doing what I want to do will be possible at all. -- Joel