This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb: print thread names in thread apply command output
- From: Jérémie Galarneau <jeremie dot galarneau at efficios dot com>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org, Luis Machado <luis dot machado at linaro dot org>
- Date: Tue, 18 Feb 2020 23:24:57 -0500
- Subject: Re: [PATCH v2] gdb: print thread names in thread apply command output
- Dkim-filter: OpenDKIM Filter v2.10.3 mail.efficios.com 9AA182441CD
- References: <20200218000803.132171-1-jeremie.galarneau@efficios.com> <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