public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* ptrace & threads question
@ 2004-07-12 23:58 Paul Gilliam
  2004-07-13  0:19 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Gilliam @ 2004-07-12 23:58 UTC (permalink / raw)
  To: gdb

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?

How is this different between NPTL and Linux threads?

-=# Paul #=-


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ptrace & threads question
  2004-07-12 23:58 ptrace & threads question Paul Gilliam
@ 2004-07-13  0:19 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2004-07-13  0:19 UTC (permalink / raw)
  To: Paul Gilliam; +Cc: gdb

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-12 23:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-12 23:58 ptrace & threads question Paul Gilliam
2004-07-13  0:19 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).