From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6668 invoked by alias); 12 Jul 2004 23:58:41 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6654 invoked from network); 12 Jul 2004 23:58:40 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 12 Jul 2004 23:58:40 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BkAgQ-0007Ys-0P; Mon, 12 Jul 2004 19:58:06 -0400 Date: Tue, 13 Jul 2004 00:19:00 -0000 From: Daniel Jacobowitz To: Paul Gilliam Cc: gdb@sources.redhat.com Subject: Re: ptrace & threads question Message-ID: <20040712235805.GA28956@nevyn.them.org> Mail-Followup-To: Paul Gilliam , gdb@sources.redhat.com References: <200407121636.52089.pgilliam@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407121636.52089.pgilliam@us.ibm.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00121.txt.bz2 On Mon, Jul 12, 2004 at 04:36:52PM -0700, Paul Gilliam wrote: > Hi All, > > 'ptrace' is documented as acting on processes: it takes a PID as an argument. > So if we are in a thread environment, where do we get registers for a > particular thread? > > What does the user area mean in a threads environment? PID on GNU/Linux in this case is what other operating systems call TID. It's a kernel process ID and each thread is a kernel process. > How is this different between NPTL and Linux threads? Not at all. -- Daniel Jacobowitz