public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* How to get all threads of a definite process?
@ 2015-02-06  6:14 fei ding
  2015-02-06  6:15 ` fei ding
  0 siblings, 1 reply; 3+ messages in thread
From: fei ding @ 2015-02-06  6:14 UTC (permalink / raw)
  To: gdb

Hi, everyone:

I want to get all threads of one definite process, and I've found some
data structure such as 'all_threads', which is not what I want, i
guess. I don't understand the relationship between process and thread,
from the gdb-source-code-level (pointers for example),  and I don't
understand the meaning of 'ptid_t', does this mean 'process_thread_id'
? and I've found this data's value is not the thread's PID that Linux
shell tell me, it just some number like 0 or 1.

If you know something about this, please help me. Thanks.

BR.

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

end of thread, other threads:[~2015-02-08  5:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-06  6:14 How to get all threads of a definite process? fei ding
2015-02-06  6:15 ` fei ding
2015-02-08  5:13   ` Doug Evans

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).