From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id US/nKmCR5Gp1zBMAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 08:45:20 -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=e/6xwUlo; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id A8C90378002; Fri, 30 Oct 2026 08:45:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI 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 F31CC1E023 for ; Fri, 30 Oct 2026 08:45:19 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 664F54BAE7C3 for ; Fri, 30 Oct 2026 12:45:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 664F54BAE7C3 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=e/6xwUlo Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 2AD184BA79B5 for ; Fri, 30 Oct 2026 12:44:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AD184BA79B5 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 2AD184BA79B5 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=1793364293; cv=none; b=oUoQOgcMrY8on2Br9+rKLxHAQDBeP70+xyLSWP3zZFMaFudsOHJCDfhLsNipn9flQ0Sg3JGHscsKZJs5YI6EWNGn9ghZAdWJXVDf+7SR7fWBRCk5JzY17/yTlACWeHlmtk3nJ9UNBSsAow5d71YwN+SofTn5ohr1EFOJYSWWGm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793364293; c=relaxed/simple; bh=7WtMpWp5U4IxzLxBJoJW0y2LUNtW8f25mXr9BX1Y9OI=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=Wvkd3OFgVWnHZP/MuIywIKfW9z2XcehLSUic/UM4pXWtvdXM9S/H3n/hN9/LqxAiLHBWWM0XEjiHNbraKrXFg1wDpCqMF2EIn39n443spOVkf4I4h/P4YdxhovKVRTbnqky0z8N4gD5X5P4XuOqDViCKSBeOhVHES4hOU2vPFls= 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=e/6xwUlo DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AD184BA79B5 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 1xMlyW-0001ne-DT; Fri, 30 Oct 2026 08:44:52 -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=kD0WpVZ5quYf0qopQlu/gdVE16Xw4OOFOaS6nlh3U2s=; b=e/6xwUloAFss TEpghq3ejiHkY9KgvJhuF1B+oAFiOkasujQVgIsK4JKeyycQw/FtS6A089EU6N81d1PVC0LYPo7VA pBmRQpeC6lCeMpYTMbshtd2emL8LGUKcPcIM2ss7OVBQDYN6/sRhtMR5r8I+Nl+nkZjaEGOm6Zq6s 2bqR34dE0dmNvmdzl96WcAZrLp43bRfumC1fuH5Ah9qLXLaenPEvOb+E2+gjEtaCybNOesF1xIozW Sj7tiu0ml4xDRcZ9mI8mBnn7p95IuuqCrpDn6j1deqQ4OD9PRCccIbx9Y9OvjOKkCZZpUOAhWYWuh x1RBspLLXJWyaUgjNEhrAw==; Date: Fri, 30 Oct 2026 14:44:46 +0200 Message-Id: <86bj8buzlt.fsf@gnu.org> From: Eli Zaretskii To: Guinevere Larsen Cc: gdb-patches@sourceware.org In-Reply-To: (message from Guinevere Larsen on Fri, 30 Oct 2026 08:32:55 -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> 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 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. Thanks.