From: Guinevere Larsen <guinevere@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 7/7] gdb/record: document recording multi-threaded inferiors
Date: Fri, 30 Oct 2026 08:32:55 -0300 [thread overview]
Message-ID: <c95eab97-00ef-4ab0-9415-5d06a11cd0d6@redhat.com> (raw)
In-Reply-To: <86wlqzvgcm.fsf@gnu.org>
On 10/30/26 3:43 AM, Eli Zaretskii wrote:
>> From: Guinevere Larsen <guinevere@redhat.com>
>> Cc: Guinevere Larsen <guinevere@redhat.com>
>> Date: Thu, 29 Oct 2026 17:57:43 -0300
>>
>> This commit adds an entry to the NEWS file about the support for
>> recording multi-threaded programs, as well as a quick explanation of
>> supporting it and the limitations to the documentation.
>> ---
>> gdb/NEWS | 5 +++++
>> gdb/doc/gdb.texinfo | 9 ++++++++-
>> 2 files changed, 13 insertions(+), 1 deletion(-)
> This is okay, but I wonder why the manual doesn't mention the caveat
> which NEWS spells out. Conversely, the manual mentions one more
> caveat: "as of now GDB is unable to record the creation of new
> threads", but NEWS doesn't. Should we make these two places convey
> the same information?
Both entries do say the same information, just in different ways.
The NEWS does say that GDB can't record the creation of new threads, in
here:
+ Additionally, no new threads may be created during the recording.
And this entry in the NEWS:
+ First and most important, the scheduler locking must be set to "on",
and the user must execute each thread individually
Is equivalent to the following information in the documentation:
+ For multi-threaded inferiors, the user must perform the scheduling by
hand, executing each thread manually for the desired amount of time
before switching to a different thread
This is what "scheduler-locking on" does, but spelled out in case a user
isn't familiar with the workings of the command. If you think there's a
clearer way to say it, I'm all ears, as I know my familiarity with the
code makes it hard to estimate what is simple/obvious knowledge.
--
Cheers,
Guinevere Larsen
it/its
she/her (deprecated)
>
> Thanks.
>
> Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2026-10-30 11:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 20:57 [PATCH 0/7] Start supporting multi-threaded inferiors with record-full Guinevere Larsen
2026-10-29 20:57 ` [PATCH 1/7] gdb/record-full: Add thread pointer to recorded instructions Guinevere Larsen
2026-10-29 20:57 ` [PATCH 2/7] gdb/record: add thread ID to the precsave format Guinevere Larsen
2026-10-29 20:57 ` [PATCH 3/7] gdb/record: Make GDB automatically switch threads when replaying Guinevere Larsen
2026-10-29 20:57 ` [PATCH 4/7] gdb: make regcache save a thread pointer, not ptid Guinevere Larsen
2026-10-29 20:57 ` [PATCH 5/7] gdb/record: Record through a thread exiting Guinevere Larsen
2026-10-29 20:57 ` [PATCH 6/7] gdb/record: Loudly warn or fail on dubious situations Guinevere Larsen
2026-10-29 20:57 ` [PATCH 7/7] gdb/record: document recording multi-threaded inferiors Guinevere Larsen
2026-10-30 6:43 ` Eli Zaretskii
2026-10-30 11:32 ` Guinevere Larsen [this message]
2026-10-30 12:44 ` Eli Zaretskii
2026-10-30 13:20 ` Guinevere Larsen
2026-10-30 13:38 ` Eli Zaretskii
2026-10-30 13:40 ` Guinevere Larsen
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=c95eab97-00ef-4ab0-9415-5d06a11cd0d6@redhat.com \
--to=guinevere@redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@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