From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gUHwDCwRmGqW3h4AWB0awg (envelope-from ) for ; Wed, 02 Sep 2026 08:06:04 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gGBfw19T; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2EA711E166; Wed, 02 Sep 2026 08:06:04 -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=unavailable 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 6439F1E09B for ; Wed, 02 Sep 2026 08:06:03 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1A5954BA2E09 for ; Wed, 2 Sep 2026 12:06:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A5954BA2E09 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gGBfw19T Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by sourceware.org (Postfix) with ESMTPS id 3FB6B4BA2E20 for ; Wed, 2 Sep 2026 12:05:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3FB6B4BA2E20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3FB6B4BA2E20 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788350735; cv=none; b=QQzIzeIqkssqIYAiWlLM/6lDVQhyMJ6pd0io+TXYLzdRQhxRgslhR78GB2IUsBZSCD58z6QQfBIiK7phjnDTYG6rKfNvI0zu/gq0vWOSG2SCFBAllB6YkN8TN4O0GUwI2tsgTqH5r10h6oeoDbztKKhDLdxNHnSWNEdZm5lXaEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1788350735; c=relaxed/simple; bh=BZZG0aDyYwqdo4f0dZiYO33FrFSpH1LZ3upcnRvFtrU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=g4Kw6XssAKLKCgUL+TrRFnv/ZjTb7zNDoogFlVg5W+LlMDm5kRfeK7CwKL/nhOJGi4oIL5TTcG5MLwZKWOIgg2rwcIPI4z4MBPwJ37mF5sS9l+TNNfPwLUYbrbokzHQAf2nNZuosS2HD3QMcma+/44y6SViE1AWab1GecEkYqX8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=gGBfw19T DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3FB6B4BA2E20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1788350736; x=1819886736; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=BZZG0aDyYwqdo4f0dZiYO33FrFSpH1LZ3upcnRvFtrU=; b=gGBfw19TdNx0LRo7hIz4DKErnme4tbNVUGkYQOsVwE+aSZH/iPkL7Tzb aXAxuORpe8H8mazFJY03ncVq4nVQkv9/FQNzHRp2pB284mLGCLoGAt0b1 UU6qpt6ad3gSjTzg+SZZPmuNMQ1nP3H9psk+avl3ViThzprihFM0eG7bZ cBbhbWAWzDjr1c4S05EsHRAXzS+TOh2NdUgc7g6BQR41UcRH4DzLC+H2/ A+gE8whfEc/2cXtM1GsspGMZJL59k14BNUjQcPI8CyxPsme1dREkzNflE vCm23l7gchA5eFM0bDxlJXIbJ0hQkeZ90UffBCOVYTiO9SJwIUfdYwITP w==; X-CSE-ConnectionGUID: OMIa/HpETdayaRp2MtoY6g== X-CSE-MsgGUID: CHy1SwcSQMqqA0X1VvW3cA== X-IronPort-AV: E=McAfee;i="6800,10657,11893"; a="106174189" X-IronPort-AV: E=Sophos;i="6.25,257,1779174000"; d="scan'208";a="106174189" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 05:05:34 -0700 X-CSE-ConnectionGUID: QIRVwd6IS+q4CTjvQcyU7A== X-CSE-MsgGUID: 8vAkaeQySRm+0VXJKtcbqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,257,1779174000"; d="scan'208";a="292901659" Received: from dut1048pvc.igk.intel.com (HELO localhost) ([10.211.177.228]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2026 05:05:32 -0700 From: Stephan Rohr To: gdb-patches@sourceware.org Cc: tom@tromey.com, simark@simark.ca Subject: [PATCH v3 0/1] gdb: add 'set print shadowed' to hide shadowed variables Date: Wed, 2 Sep 2026 12:05:25 +0000 Message-ID: <20260902120526.38859-1-stephan.rohr@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 From: "Rohr, Stephan" Hello all, this is v3 of the patch introducing a user setting to enable/disable the printing of shadowed variables. You can find v2 of the patch at https://sourceware.org/pipermail/gdb-patches/2026-August/229552.html Tom posted feedback: https://sourceware.org/pipermail/gdb-patches/2026-August/229675.html I addressed the feedback from Tom in v3 of the patch. I appreciate your feedback. Thanks Stephan Sargsyan, Eduard (1): gdb: Introduce new setting to filter out shadowed variables. gdb/NEWS | 14 +++ gdb/doc/gdb.texinfo | 22 +++- gdb/stack.c | 154 +++++++++++++++++++---- gdb/testsuite/gdb.ada/var_shadowing.exp | 1 + gdb/testsuite/gdb.base/options.exp | 23 ++++ gdb/testsuite/gdb.base/var-shadowing.c | 2 +- gdb/testsuite/gdb.base/var-shadowing.exp | 88 +++++++++++++ 7 files changed, 279 insertions(+), 25 deletions(-) -- 2.43.0 ________________________________________ Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 (89) 99143-0 www.intel.de Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman Chairperson of the Supervisory Board: Sonja Pierer Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.