From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cWw1G6mxfGl6rx0AWB0awg (envelope-from ) for ; Fri, 30 Jan 2026 08:27:05 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RdKuFVFl; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 6B4891E0DD; Fri, 30 Jan 2026 08:27:05 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham 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 027CC1E08D for ; Fri, 30 Jan 2026 08:27:05 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 950784BB5882 for ; Fri, 30 Jan 2026 13:27:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 950784BB5882 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=RdKuFVFl Received: from omta36.uswest2.a.cloudfilter.net (omta36.uswest2.a.cloudfilter.net [35.89.44.35]) by sourceware.org (Postfix) with ESMTPS id 4F0D04BA2E2D for ; Fri, 30 Jan 2026 13:17:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F0D04BA2E2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F0D04BA2E2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.35 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769779049; cv=none; b=gh7NnWlBcjc3avAc53biOcbGLe3aFpLfGiwIrlvu2vVVdoBrpCAz/BBiW29Is89Lr+Ne8CO+N79ep0Gal84TIEN/klQ3Ep0S+iV0Iy+6n6OxKoluGfjjqDjW4L0on8AC5DqECDhtyGVVbBCie8TSGKD+oKoe1JNO4Tvau/3oGAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769779049; c=relaxed/simple; bh=zKzMse/mKO4q0k/N7YUgm5J8GWn2Itcsux/wGuCtdf4=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=Cu5EGtmD/+J8TuEN8NSiQ+i1aaoHN1xpo+Enl/csgnLcI4zWDmCdLZxVNRW4KZ08lV7fwCRUqRkgdx51SFb908WaqL0x999U0GfVVf6fGWkkqcFtYFx4+YmkzWUfIbMK9eGT3qhAsHIac5+5J9HHaadWubfHXKCJnsSTJRXeA0Q= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F0D04BA2E2D Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id lo6VvqdKPVCBNloNMvjS1m; Fri, 30 Jan 2026 13:17:28 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id loNLv3Fj6V6WMloNMvxDzA; Fri, 30 Jan 2026 13:17:28 +0000 X-Authority-Analysis: v=2.4 cv=E//Npbdl c=1 sm=1 tr=0 ts=697caf68 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=vUbySO9Y5rIA:10 a=ItBw4LHWJt0A:10 a=ML9CuwU_sgD7192IR4AA:9 a=QEXdDO2ut3YA:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Cc:To:In-Reply-To:References:Message-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date:From:Sender: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qgVCI1xDJsTyGNFkmGMAFj1Zw6iwHVb4yuw6clJJdH0=; b=RdKuFVFlVgaUy9Bj17vcpeJ7Us ONLxWe+DzCeoTD/y5Ept1yPqRkIX5jgkYtpL5WrcYW+E0/egQZw8aSNFDoO6xsMry/KosgSUP7REg ur/uKvIaWji5YMIAifp7TDQyZ; Received: from 97-122-114-32.hlrn.qwest.net ([97.122.114.32]:33716 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vloNL-00000001JjQ-2G8s; Fri, 30 Jan 2026 06:17:27 -0700 From: Tom Tromey Date: Fri, 30 Jan 2026 06:17:35 -0700 Subject: [PATCH v3 21/21] Update gdb.execute documentation MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260130-pr-28948-logging-5-v3-21-3eec47ef3cba@tromey.com> References: <20260130-pr-28948-logging-5-v3-0-3eec47ef3cba@tromey.com> In-Reply-To: <20260130-pr-28948-logging-5-v3-0-3eec47ef3cba@tromey.com> To: gdb-patches@sourceware.org Cc: Tom Tromey X-Mailer: b4 0.14.3 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.114.32 X-Source-L: No X-Exim-ID: 1vloNL-00000001JjQ-2G8s X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-114-32.hlrn.qwest.net ([192.168.122.1]) [97.122.114.32]:33716 X-Source-Auth: tom+tromey.com X-Email-Count: 33 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfGqoL8OJar6r+mLBxgVhDCtACyxM6RszXR47ekZEHmAci60egGKn6OBPOvabvTMXOQU6DZQHy2rbJ0vFvxIW+JnVoPoc1NQvbRH7E9Sj+kO43kA48soI X5XzN1/R8efh9ABRzlBGb6OCGImVMmCTP1QvexKjrBvI6oMJ44o0qwTEwmk8/PlcW5uUA5RUDOpxZnAJy9P/wikffJ3hj5Yc9YM= 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 updates the gdb.execute documentation to describe how logging and perhaps other settings affect what can be captured. --- gdb/doc/python.texi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi index 1f88ea7e9ad..74357620b7a 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -305,6 +305,13 @@ return value is @code{None}. If @var{to_string} is @code{True}, the @value{GDBN} virtual terminal will be temporarily set to unlimited width and height, and its pagination will be disabled; @pxref{Screen Size}. +Note that, even when @var{to_string} is @code{True}, other settings +that affect output will still apply. For example, some logging +settings (@pxref{Logging Output}) may still cause the output to be +redirected. If this matters, you can temporarily disable settings by +prefixing the given command with the appropriate @code{with} +invocations (@pxref{Command Settings}). + When @var{styling} is @code{True}, the output, whether sent to standard output, or to a string, will have styling applied, if @value{GDBN}'s standard output supports styling, and @kbd{show style -- 2.49.0