From: "Jérémie Galarneau" <jeremie.galarneau@efficios.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org, Luis Machado <luis.machado@linaro.org>
Subject: Re: [PATCH v2] gdb: print thread names in thread apply command output
Date: Wed, 19 Feb 2020 04:26:00 -0000 [thread overview]
Message-ID: <CA+jJMxud_a8pEme7bm7H=+HTpHQOqd9xVMJ5VbTMeQKLVO08Fw@mail.gmail.com> (raw)
In-Reply-To: <87k14j62b8.fsf@tromey.com>
On Tue, 18 Feb 2020 at 15:57, Tom Tromey <tom@tromey.com> wrote:
>
> >>>>> "Jérémie" == Jérémie Galarneau <jeremie.galarneau@efficios.com> writes:
>
> Jérémie> This situation arises in the `gdb.threads/threadapply.exp` test which
> Jérémie> kills and removes the inferior as part of a "thread apply" command.
>
> Thank you for the patch.
>
> Jérémie> + /* The thread header is computed before running the command since
> Jérémie> + the command can change the inferior, which is not permitted
> Jérémie> + by thread_target_id_str. */
> Jérémie> + std::string thr_header =
> Jérémie> + string_printf(_("\nThread %s (%s):\n"), print_thread_id (thr),
> Jérémie> + thread_target_id_str (thr).c_str ());
>
> Missing a space before the "(" after string_printf here.
>
> IIUC this is fixing a latent bug, is that correct?
Hi Tom,
This is not a bug fix. AFAIK, this information has never been provided
as part of that command's output.
Thanks for the comments!
Jérémie
>
> Anyway this looks ok to me with that nit fixed.
>
> Tom
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
next prev parent reply other threads:[~2020-02-19 4:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-18 0:08 Jérémie Galarneau
2020-02-18 20:57 ` Tom Tromey
2020-02-19 4:26 ` Jérémie Galarneau [this message]
2020-02-19 5:25 ` Simon Marchi
2020-02-26 21:45 ` Simon Marchi
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='CA+jJMxud_a8pEme7bm7H=+HTpHQOqd9xVMJ5VbTMeQKLVO08Fw@mail.gmail.com' \
--to=jeremie.galarneau@efficios.com \
--cc=gdb-patches@sourceware.org \
--cc=luis.machado@linaro.org \
--cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).