From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id EdoCE+SDSWpIASgAWB0awg (envelope-from ) for ; Sat, 04 Jul 2026 18:06:28 -0400 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=lU52tFra; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4A1661E098; Sat, 04 Jul 2026 18:06:28 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 CD4B81E024 for ; Sat, 04 Jul 2026 18:06:27 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 55E704BA23E7 for ; Sat, 4 Jul 2026 22:06:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55E704BA23E7 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=lU52tFra Received: from omta40.uswest2.a.cloudfilter.net (omta40.uswest2.a.cloudfilter.net [35.89.44.39]) by sourceware.org (Postfix) with ESMTPS id B47C54BA23E6 for ; Sat, 4 Jul 2026 22:05:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B47C54BA23E6 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 B47C54BA23E6 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783202724; cv=none; b=FC09ps1Y3ut5Bp5GsU8wxo7uAcKJai9rRNkYI8qqEeAO5DO09gkE3ncqhsfSvXqRMNjk3hBlhQrDe6jQoDEZBLbjsl08wrDtDZCHad6O70nmFmVpyJ2FimgXsZuxCif1IIbU7KdWttSfyDdsuw2rsIGums5h86IyB30hH4tXVAE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783202724; c=relaxed/simple; bh=EbYh+jJAvBreW1279+ifWDL6U/xLnJIQ+NNcrsnKwII=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=ifWmNJSGgvFYKizYVt9VF3XNu7nlF4sPl+cAmZWmYEPuTcbyVt90k2ELKSW8OyH8PI5lDqpaN1wEG4LMGtvpt5mrNcOt9msIlBZHW/vM6/sOV6z2Qjw5CBNTOYmv6XKh9nmCwKiFVavZ14B2cNZyBHp/HJVfJbsP9R9RPB96EmI= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=lU52tFra reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B47C54BA23E6 Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id fyznwhT1xjgweg8UFwe6vM; Sat, 04 Jul 2026 22:05:23 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id g8UFwbhG2RY4Ig8UFw4Cbj; Sat, 04 Jul 2026 22:05:23 +0000 X-Authority-Analysis: v=2.4 cv=WNl/XmsR c=1 sm=1 tr=0 ts=6a4983a3 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=ItBw4LHWJt0A:10 a=fckX5WmKIZ7MzAZgnfcA: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=SLNhdTBz1pIBzpLxzzMJJTo/mnrh/jtfsVrB8dWdGsA=; b=lU52tFraQWI9FzYmSWWtQb1O/2 5491mToLX3G7moVHDklrYJL++uq3p9ugGq0oHQPXxuAfljX/v7GvAuQRb2TBbbdMKWTvG27Ae8E+b /Jh8XlcUwB1FaB2F92keesKX7; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:38412 helo=[192.168.122.1]) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wg8UF-00000000OSH-0a3r; Sat, 04 Jul 2026 16:05:23 -0600 From: Tom Tromey Date: Sat, 04 Jul 2026 16:05:20 -0600 Subject: [PATCH 6/9] Use 'const' with some value_print_options MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260704-print-opts-cleanup-v1-6-fb54a5112a8d@tromey.com> References: <20260704-print-opts-cleanup-v1-0-fb54a5112a8d@tromey.com> In-Reply-To: <20260704-print-opts-cleanup-v1-0-fb54a5112a8d@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: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wg8UF-00000000OSH-0a3r X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net ([192.168.122.1]) [75.166.225.82]:38412 X-Source-Auth: tom+tromey.com X-Email-Count: 7 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIcExC4Gf0jn1y5PgN4511ADERW28GAa5cu1fvAk1xFXzO0Ar4sQyXsi+rLxtDLivdTgsECTGpzY7xWtulqn/dVal6yOh2uPY0D/L73KMb6QRMaaz6H1 d9Ht4tV6iZq86vhEnHswUCXjE1ZygSMandmrm1DmdJ4HzTDuxFpVAV53BFSQVhY1M3fp49TO6GTTgfIHy/8ToL/cHqtId0jT0Y8= 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 I found one spot using value_print_options where 'const' would be appropriate. --- gdb/ada-varobj.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/ada-varobj.c b/gdb/ada-varobj.c index 6d4cf166b87..623df0f01ed 100644 --- a/gdb/ada-varobj.c +++ b/gdb/ada-varobj.c @@ -807,7 +807,7 @@ ada_varobj_get_type_of_child (struct value *parent_value, static std::string ada_varobj_get_value_image (struct value *value, - struct value_print_options *opts) + const value_print_options *opts) { string_file buffer; @@ -826,7 +826,7 @@ ada_varobj_get_value_image (struct value *value, static std::string ada_varobj_get_value_of_array_variable (struct value *value, struct type *type, - struct value_print_options *opts) + const value_print_options *opts) { const int numchild = ada_varobj_get_array_number_of_children (value, type); @@ -851,7 +851,7 @@ ada_varobj_get_value_of_array_variable (struct value *value, static std::string ada_varobj_get_value_of_variable (struct value *value, struct type *type, - struct value_print_options *opts) + const value_print_options *opts) { ada_varobj_decode_var (&value, &type); -- 2.49.0