From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v3 4/7] Per-inferior/Inferior-qualified thread IDs
Date: Thu, 07 Jan 2016 22:24:00 -0000 [thread overview]
Message-ID: <568EE59B.3050302@redhat.com> (raw)
In-Reply-To: <568EE054.7040508@ericsson.com>
On 01/07/2016 10:01 PM, Simon Marchi wrote:
> Oh, one comment I forgot:
>
> On 16-01-06 08:03 AM, Pedro Alves wrote:
>> + A range will be of the form
>> + <inferior_num>.<thread_number1>-<thread_number1> and will represent
>> + all the threads of inferior inferior_num with number between
>> + thread_number1 and thread_number2, inclusive. <inferior_num> can
>> + also be omitted, as in <thread_number1>-<thread_number1>, in which
>> + case GDB infers the inferior number from the current inferior.
>
> Because this class^Wstruct and associated functions are disconnected from
> the global GDB state (which is great), it would be more accurate to say
> something like "from the default passed to the constructor^Winit function.
Thanks for noticing that, I'll fix. The code used to rely on the
global state when I wrote the comment, then forgot to update it.
(While writing the tests I noticed that "info threads 1.1 2.1 3" would try
to print thread 2.3 instead of 1.3 otherwise, because "info threads" switches
context to each thread being printed, which meant that by the
time we got to "3", the current inferior was 2, while the current
inferior before the command was entered was 1.)
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-01-07 22:24 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-06 13:03 [PATCH v3 0/7] " Pedro Alves
2016-01-06 13:03 ` [PATCH v3 2/7] Add Python InferiorThread.inferior attribute Pedro Alves
2016-01-06 18:57 ` Simon Marchi
2016-01-06 13:03 ` [PATCH v3 1/7] Add a new $_inferior convenience variable Pedro Alves
2016-01-06 18:56 ` Simon Marchi
2016-01-06 13:03 ` [PATCH v3 5/7] InferiorThread.global_num Pedro Alves
2016-01-06 19:03 ` Simon Marchi
2016-01-06 13:03 ` [PATCH v3 3/7] Centralize thread ID printing Pedro Alves
2016-01-06 18:57 ` Simon Marchi
2016-01-06 13:04 ` [PATCH v3 4/7] Per-inferior/Inferior-qualified thread IDs Pedro Alves
2016-01-06 18:51 ` Simon Marchi
2016-01-07 19:45 ` Pedro Alves
2016-01-07 22:28 ` Simon Marchi
2016-01-07 23:37 ` Pedro Alves
2016-12-07 21:10 ` Thomas Schwinge
2016-12-07 21:29 ` Simon Marchi
2016-12-08 8:53 ` Thomas Schwinge
2016-01-07 22:02 ` Simon Marchi
2016-01-07 22:24 ` Pedro Alves [this message]
2016-01-06 13:11 ` [PATCH v3 7/7] Add $_gthread convenience variable Pedro Alves
2016-01-06 19:14 ` Simon Marchi
2016-01-06 13:11 ` [PATCH v3 6/7] Implement "info threads -gid" Pedro Alves
2016-01-06 19:12 ` Simon Marchi
2016-01-08 13:54 ` [PATCH v3 0/7] Per-inferior/Inferior-qualified thread IDs Yao Qi
2016-01-13 11:25 ` Pedro Alves
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=568EE59B.3050302@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@ericsson.com \
/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