This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace & threads question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]