This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: ptrace & threads question
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Gilliam <pgilliam at us dot ibm dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 12 Jul 2004 19:58:05 -0400
- Subject: Re: ptrace & threads question
- References: <200407121636.52089.pgilliam@us.ibm.com>
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