From: fei ding <fdingiit@gmail.com>
To: gdb@sourceware.org
Subject: Re: How to get all threads of a definite process?
Date: Fri, 06 Feb 2015 06:15:00 -0000 [thread overview]
Message-ID: <CAGmPkfJXp2Dr97U0dETN84-qkBumxD845XBVrnbYBCD=gW43YA@mail.gmail.com> (raw)
In-Reply-To: <CAGmPkfLZB=1ZeA-qrXm9Uf+6VMJ-yZbfaA91Q44TO=7Q7Aa_ZQ@mail.gmail.com>
BTW, I am talking about gdbserver, Thanks
2015-02-06 14:14 GMT+08:00 fei ding <fdingiit@gmail.com>:
> 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.
next prev parent reply other threads:[~2015-02-06 6:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 6:14 fei ding
2015-02-06 6:15 ` fei ding [this message]
2015-02-08 5:13 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGmPkfJXp2Dr97U0dETN84-qkBumxD845XBVrnbYBCD=gW43YA@mail.gmail.com' \
--to=fdingiit@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox