From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 82QjH+Od5GolTBQAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 09:38:43 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=FFAuLHkl; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 67B481E023; Fri, 30 Oct 2026 09:38:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id BE99B1E023 for ; Fri, 30 Oct 2026 09:38:41 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 60DF24BA799F for ; Fri, 30 Oct 2026 13:38:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60DF24BA799F Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=FFAuLHkl Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 873F74BA2E3E for ; Fri, 30 Oct 2026 13:38:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 873F74BA2E3E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 873F74BA2E3E Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793367495; cv=none; b=Y+O01/pcpJMS+EHJ1H6vHcZdw2xaGjFS1tq05Jo0M65n+ENsQcO2NdY7YtTMSTawYhyzLhdfoe2v75I8njtdA9mu02RJkWKMiqHsaLcb5KYPyPCmQl1qAMRm0I29YfFjYVBWlL0RIePljtzWFfbp1CsSAhPobi5ko9/5YKyzrAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793367495; c=relaxed/simple; bh=rnmA74Rj8Rp865/nmBYEBgn/oNPe+eWsYfn4jktOEGw=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=U4W/uDXHZnAnz65GqzI9098ZUB4dn1+MUY6znpiaKbNZwrEo6/Gg2BE0XPNaRqnvi1Ka1DzzjMHwIBnjV0O06ZJ0CqdJvLtUZ2vzHAg8C+Jde6mHmrz8d0XGYe3XUGkkA5kt8LEkVdP/a312YgCsRq9zXBfU/C2DL/0JMiunuFY= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=FFAuLHkl DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 873F74BA2E3E Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xMmo9-0007Zs-Aa; Fri, 30 Oct 2026 09:38:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=O2hswRxfJwlSYgNAxG9EiVzWcgYBYyzecpI3Kj+anC8=; b=FFAuLHklJVwi tShLplb4mAPYzs0K85bJUGe5siDWnGjPqBGx6yocVXfKpRi6wwsfOyqlIp9+CJnKWl1S8GS5kv5qe qY3HDJMFkywgtjwNTrKIahSSXuvMi8K22md4kNZgfHGjrz69fYEz253i7QlLOClQmd8x9hzem4Uyk EKbMWXMK1rve7veafwipyBhdad+YfqC98FFUfXllVKSMu8/2/+kDorUydxsX5pxfTwvkIBxPU1aTs muztskEjj0IKd5RXMB/+VQgJc6gE3Qa316feHeel84xw6qONcMkXijGLDpA0aAKwteQAN7RzWKzXb 1lx8yws7Y7pr+k+6Ybl1MQ==; Date: Fri, 30 Oct 2026 15:38:08 +0200 Message-Id: <86tsm3tikf.fsf@gnu.org> From: Eli Zaretskii To: Guinevere Larsen Cc: gdb-patches@sourceware.org In-Reply-To: <5c190503-1f1e-477f-b20c-b1e273f821e6@redhat.com> (message from Guinevere Larsen on Fri, 30 Oct 2026 10:20:12 -0300) Subject: Re: [PATCH 7/7] gdb/record: document recording multi-threaded inferiors References: <20261029205743.1917668-1-guinevere@redhat.com> <20261029205743.1917668-8-guinevere@redhat.com> <86wlqzvgcm.fsf@gnu.org> <86bj8buzlt.fsf@gnu.org> <5c190503-1f1e-477f-b20c-b1e273f821e6@redhat.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org > Date: Fri, 30 Oct 2026 10:20:12 -0300 > Cc: gdb-patches@sourceware.org > From: Guinevere Larsen > > > On 10/30/26 9:44 AM, Eli Zaretskii wrote: > >> Date: Fri, 30 Oct 2026 08:32:55 -0300 > >> Cc: gdb-patches@sourceware.org > >> From: Guinevere Larsen > >> > >> > >> On 10/30/26 3:43 AM, Eli Zaretskii wrote: > >>>> From: Guinevere Larsen > >>>> Cc: Guinevere Larsen > >>>> 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. > > I suggest to say this in the same wording in both cases. I think the > > NEWS wording is more clear in the former case and the manual's wording > > is clear in the second case. > > That's fair. I took your suggestion and updated it locally. I'll refrain > from sending a v2 with just this change, though. > > Are you ok with me adding your approval tag to this commit now, or would > you prefer to see the patch before doing so? No, you can consider it approved, thanks.