From: Guinevere Larsen <guinevere@redhat.com>
To: Andrew Burgess <aburgess@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH v2] gdb/record-full: fix stop status when inferior isn't resumed
Date: Mon, 19 Oct 2026 15:48:46 -0300 [thread overview]
Message-ID: <f70a8017-c0f8-442f-9c7e-87b6bbf870e6@redhat.com> (raw)
In-Reply-To: <87ld7t93wb.fsf@redhat.com>
On 10/19/26 11:11 AM, Andrew Burgess wrote:
> Guinevere Larsen <guinevere@redhat.com> writes:
>
>> The wait function for the record-full target has a check for whether
>> or not the inferior should be resumed. However, when we correctly
>> identified that it shouldn't be resumed, we incorrectly set the exit
>> status as "ignore", as though the inferior had resumed and had an
>> uninteresting stop.
>>
>> This would cause a problem when - for example - GDB has to wait for
>> all threads to actually be stopped, because we do that by waiting
>> until all threads have a wait status of "no_resumed", and the "ignore"
>> status would make us iterate over them and wait more.
>>
>> This commit fixes that by setting the status correctly to
>> not_resumed. The commit does not include a test because almost nothing
>> works with multi-threaded programs, and my upcoming series will
>> exercise this code path plenty of times, when testing it makes more
>> sense.
> Thanks for updating the commit message. One tiny nit...
>
>> @@ -1187,8 +1187,8 @@ record_full_wait_1 (struct target_ops *ops,
>> {
>> gdb_assert ((options & TARGET_WNOHANG) != 0);
>>
>> - /* No interesting event. */
>> - status->set_ignore ();
>> + /* No thread was reusmed at all. */
> Typo: reusmed -> resumed
>
> With that fixed:
>
> Approved-By: Andrew Burgess <aburgess@redhat.com>
Fixed the typo! thank you for the review, I've pushed the patch.
> Thanks,
> Andrew
--
Cheers,
Guinevere Larsen
it/its
she/her (deprecated)
prev parent reply other threads:[~2026-10-19 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-09 14:39 Guinevere Larsen
2026-10-19 14:11 ` Andrew Burgess
2026-10-19 18:48 ` Guinevere Larsen [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=f70a8017-c0f8-442f-9c7e-87b6bbf870e6@redhat.com \
--to=guinevere@redhat.com \
--cc=aburgess@redhat.com \
--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