From: Tom Tromey <tom@tromey.com>
To: Stephan Rohr <stephan.rohr@intel.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/1] gdb, testsuite: unify 'Switching to thread' message
Date: Wed, 17 Jun 2026 13:23:09 -0600 [thread overview]
Message-ID: <87zf0t3raa.fsf@tromey.com> (raw)
In-Reply-To: <20260616130419.121388-1-stephan.rohr@intel.com> (Stephan Rohr's message of "Tue, 16 Jun 2026 13:04:19 +0000")
>>>>> Stephan Rohr <stephan.rohr@intel.com> writes:
> From: "Rohr, Stephan" <stephan.rohr@intel.com>
> The 'normal_stop ()' function in infrun prints
> [Switching to Thread 0x155554dff6c0 (LWP 77976)]
> on thread switch. The 'print_selected_thread_frame ()' function
> in thread.c prints
> [Switching to thread 2 (Thread 0x155554dff6c0 (LWP 96643))]
> Ensure consistent output by updating the thread switch message in
> 'normal_stop ()'.
I'm in favor of uniformity so I'm in favor of the core part of the
patch. See below.
Also see commit f99be06d where some other things display thread info
differently:
[New Thread 0x7ffff7cbe6c0 (LWP 1267702) (id 2)]
[Thread 0x7ffff6cbd6c0 (LWP 1267703) (id 3) exited]
Maybe we ought to make those more uniform as well.
You don't have to do this in order to land this patch though.
> - -re "^\\\[Switching to Thread\[^\r\n\]+\\\]\r\n" {
> + -re "^\\\[Switching to thread\[^\r\n\]+\\\]\r\n" {
> + puts "XXX: Consume switching to thread line"
> verbose -log "XXX: Consume switching to thread line"
> - exp_continue
> + fail $gdb_test_name
This seems wrong. At least the puts is clearly just for debugging
(unclear why the verbose wasn't enough); but I think the 'fail' is a
leftover too.
Ok with this hunk fixed up.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
prev parent reply other threads:[~2026-06-17 19:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-16 13:04 Stephan Rohr
2026-06-17 19:23 ` Tom Tromey [this message]
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=87zf0t3raa.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=stephan.rohr@intel.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