From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6defLJmz42oHLA8AWB0awg (envelope-from ) for ; Thu, 29 Oct 2026 16:59:05 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=S21HXOBU; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B25F71E06B; Thu, 29 Oct 2026 16:59:05 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 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,RCVD_IN_SBL_CSS,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 43D941E007 for ; Thu, 29 Oct 2026 16:59:05 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D3ED84BAE7D1 for ; Thu, 29 Oct 2026 20:59:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3ED84BAE7D1 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=S21HXOBU Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 7BCA64BA9012 for ; Thu, 29 Oct 2026 20:58:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7BCA64BA9012 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7BCA64BA9012 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793307514; cv=none; b=diCyqt8sAo4Olprnhqybam8SB5m3Jcx0qMm7KIWlqfG98A9G1jEf9Z0+C9dyqOjIMbG5JR1SDK2tBh8462zBtT+v+/IoQIzarGgavl6z9Gqkmcz4vZyF9s73fWlx93impZt9/u8eKIvfbM8RAJLo88fnC683tLIBL0fDd/xxzQg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793307514; c=relaxed/simple; bh=euCKzQ/pSngwCfMo6Szu2nRGS1W5cR7RNJRYGZvpnfE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bOYiDfyANJ2MFjTR9ZYx9fZmJf85pDroeDiS2GLT77qyylm4y0RtCPbp8iziHLFcb0OS0mfgwxFAM3vGvY3oNJSbxQnUBvwPpkuBBAk7Km4z7Qs4fiOoeK5etQvjZMnvXg4752JR03W4RaykXZ2WWRA+/+zCrm8fdP2VedYgunU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=S21HXOBU DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7BCA64BA9012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793307514; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OwsSEmd1N2885FpI6ZRfSiGXXvvFbwKEmYwDJUbdl3s=; b=S21HXOBULv/i0WsjH4KskMXKJrGeqoQoLjuJNFdSrcc16ZbGJKspSQQ4OpffnZsfLr/RLl klgESjJMJfMjBDtMJW+aoT3Ok6aIMSO/7i/xkwzI+VkFuLnN6aCf8dDsdTRlvjYoaIXAre ChRcqsBFIQDFKcTDGq7gcbUXxEnD9x8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-ENcx6pOsP2mzfvOlNch6kg-1; Thu, 29 Oct 2026 16:58:32 -0400 X-MC-Unique: ENcx6pOsP2mzfvOlNch6kg-1 X-Mimecast-MFC-AGG-ID: ENcx6pOsP2mzfvOlNch6kg_1793307512 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 039A81955F13 for ; Thu, 29 Oct 2026 20:58:32 +0000 (UTC) Received: from glarsen-thinkpadp16vgen1.rmtbr.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E5D4F5AA; Thu, 29 Oct 2026 20:58:30 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH 7/7] gdb/record: document recording multi-threaded inferiors Date: Thu, 29 Oct 2026 17:57:43 -0300 Message-ID: <20261029205743.1917668-8-guinevere@redhat.com> In-Reply-To: <20261029205743.1917668-1-guinevere@redhat.com> References: <20261029205743.1917668-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: vZNpVvYFEIdl4kB8KR78TmfY8b67x3zg0ulydbP6tk4_1793307512 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 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(-) diff --git a/gdb/NEWS b/gdb/NEWS index 7303ec0e460..02a6b0d7df6 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -44,6 +44,11 @@ source is modified. Source tracking can be enabled with 'set breakpoint source-tracking enabled on'. +* record-full can now record inferiors that have multiple threads, with + some caveats. First and most important, the scheduler locking must be + set to "on", and the user must execute each thread individually. + Additionally, no new threads may be created during the recording. + * New targets i386 Windows/MSVC i[34567]86-*-windows-msvc diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 66152d2582e..5888691a4e5 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -8057,11 +8057,18 @@ program counter register) and the memory of the inferior are still changed as they normally would. Their contents are taken from the execution log. +If the inferior has multiple threads, they will be replayed in the +order they were recorded in, ignoring settings that change the +scheduler. + @cindex record mode If the record for the next instruction is not in the execution log, @value{GDBN} will debug in @dfn{record mode}. In this mode, the inferior executes normally, and @value{GDBN} records the execution log -for future replay. +for future replay. 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. As of +now GDB is unable to record the creation of new threads. The process record and replay target supports reverse execution (@pxref{Reverse Execution}), even if the platform on which the -- 2.56.0