From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id e7mfJPaPKWmjDj4AWB0awg (envelope-from ) for ; Fri, 28 Nov 2025 07:05:10 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LtRercQ/; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 85B5F1E08D; Fri, 28 Nov 2025 07:05:10 -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,HTML_MESSAGE,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 server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 D20821E08D for ; Fri, 28 Nov 2025 07:05:08 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5C9AD3858C42 for ; Fri, 28 Nov 2025 12:05:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C9AD3858C42 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=LtRercQ/ Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by sourceware.org (Postfix) with ESMTPS id 96A063858D20 for ; Fri, 28 Nov 2025 12:03:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 96A063858D20 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 96A063858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764331426; cv=none; b=Y9XTy6t1TgB/C05DwcZ4bNP2L9fnbJwarGPJVAeWbqHCu3L81YpDGlePMI+yqBzkt1ezHdjhKzIa8rEl8pjMlcQnGdPkNp0poVSTC7Vv+YWsU3jiVox9yXv6Yyp8LHXMlh3mn1XZx/yUmF/jZ47MffGCZn5XplLDFAZY2qV2rvo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764331426; c=relaxed/simple; bh=NsrC/1SgU6XvxzHcjaRKp2bGEG3Lw8JkRYZb3cRJ7fs=; h=DKIM-Signature:MIME-Version:From:To:Subject:Date:Message-ID: MIME-Version; b=ahkm/oTkeEEXszldwD34400dpSucyGA5bk3E09Y61oVhcS/y9LfyuSNJPRn7P0KccGI5fZCEQTdKFInLEZa4p56S4z98J6LwlCTM0XY/l4sUJHatZfR8Hs9F8Atm3/kVxeU3TFKVGXAszmFnjRRhhL4ZfXYHqKnQoDBOE7GExl4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96A063858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1764331427; x=1795867427; h=from:to:cc:subject:date:message-id; bh=NsrC/1SgU6XvxzHcjaRKp2bGEG3Lw8JkRYZb3cRJ7fs=; b=LtRercQ/p5dPeyDcpiL+yqkGWABkp/fwF0nc+4ouPcrhQWLuaZC9Oq7g S+114OdmZvZjPT3U3CD5XzZ7FjuaOLLUpbdnQcDGOd7YZ3KHWz4Lpr5N4 oDuQwiCraQSnfXnhyc35smqVQpSf70oCFH8K95gRbS65+pFkTdWc2l//z WmjFZiHS9i9OlePgT3MpvKSZLPMurYoN+KsFSa6COicR/dq1LwKKpXKyq Me2zgkunneaSWRQahZtlLcN8W+sp/TRWTav5EgbKGpVljFd4YSmaelin6 30Oa+dHy2K0cJDLPCnPiFmvuZfoec++th35wsUCVgM9Tj2YEpc24wgsph A==; X-CSE-ConnectionGUID: xxvKH3r3SaSVaaPre/M7yA== X-CSE-MsgGUID: El+Lcg7HTB68+6zvy0spQg== X-IronPort-AV: E=McAfee;i="6800,10657,11626"; a="91840059" X-IronPort-AV: E=Sophos;i="6.20,232,1758610800"; d="scan'208";a="91840059" Content-Type: multipart/mixed; boundary="===============3090843006903474262==" MIME-Version: 1.0 Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2025 04:03:46 -0800 X-CSE-ConnectionGUID: vLoNDQ9aTfKxAQLL7KViwQ== X-CSE-MsgGUID: P+8BmzTTTJSYRap5Jr/jNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.20,232,1758610800"; d="scan'208";a="216795330" Received: from abijaz-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.82.59]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2025 04:03:43 -0800 From: Abdul Basit Ijaz To: gdb-patches@sourceware.org Cc: pedro@palves.net, philippe.waroquiers@skynet.be, aburgess@redhat.com, tankut.baris.aktemur@intel.com, christina.schimpe@intel.com, lsix@lancelotsix.com, eliz@gnu.org, abdul.b.ijaz@intel.com, tom@tromey.com Subject: [PATCH v11 0/2] add annotation in 'info locals' command for variables shadowing case Date: Fri, 28 Nov 2025 13:03:15 +0100 Message-ID: <20251128120317.12208-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.51.1 MIME-Version: 1.0 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 --===============3090843006903474262== Content-Transfer-Encoding: 8bit Hi All, For the variable shadowing case, these patches add the annotation "shadowed" and location information to the shadowed variables so that it is easier for the end user to identify which variable was shadowed. Patch#1 updates "info locals" command and Path #2 is for the mi commands '-stack-list-locals' and '-stack-list-variables'. Last V10 Series: https://sourceware.org/pipermail/gdb-patches/2025-April/217019.html V9 Series: https://sourceware.org/pipermail/gdb-patches/2025-March/216590.html V8 Series: https://sourceware.org/pipermail/gdb-patches/2024-December/214263.html Documentation in V7 Series was already approved by Eli: https://sourceware.org/pipermail/gdb-patches/2024-October/212228.html https://sourceware.org/pipermail/gdb-patches/2024-October/212229.html Patch#1 V6 was Reviewed-by Larsen: https://sourceware.org/pipermail/gdb-patches/2024-January/205923.html Patch#2 V2 was Tested-by Larsen: https://sourceware.org/pipermail/gdb-patches/2024-January/205922.html Changes since V10: * This V10 series fixes the feedback from Andrew: https://sourceware.org/pipermail/gdb-patches/2025-October/222129.html Testing is done for unix/m32/native-gdbserver configurations and no issue is seen. Thanks & Best Rergards Abdul Basit Ijaz, Abdul B (2): gdb: add annotation in 'info locals' command for variables shadowing case gdb: add shadowed field in '-stack-list-locals/variables' mi commands gdb/NEWS | 8 + gdb/doc/gdb.texinfo | 38 +++++ gdb/language.c | 20 +++ gdb/language.h | 19 +++ gdb/mi/mi-cmd-stack.c | 129 +++++++++++----- gdb/printcmd.c | 29 +++- gdb/stack.c | 115 +++++++++++++- gdb/stack.h | 14 ++ gdb/testsuite/gdb.ada/var_shadowing.exp | 39 +++++ .../gdb.ada/var_shadowing/var_shadowing.adb | 30 ++++ gdb/testsuite/gdb.base/var-shadowing.c | 49 ++++++ gdb/testsuite/gdb.base/var-shadowing.exp | 92 ++++++++++++ gdb/testsuite/gdb.base/var-shadowing2.c | 16 ++ gdb/testsuite/gdb.mi/mi-var-shadowing.c | 48 ++++++ gdb/testsuite/gdb.mi/mi-var-shadowing.exp | 141 ++++++++++++++++++ gdb/testsuite/gdb.opt/inline-locals.exp | 21 ++- gdb/testsuite/gdb.rust/var_reuse.exp | 36 +++++ gdb/testsuite/gdb.rust/var_reuse.rs | 20 +++ gdb/value.h | 17 ++- 19 files changed, 829 insertions(+), 52 deletions(-) create mode 100644 gdb/testsuite/gdb.ada/var_shadowing.exp create mode 100644 gdb/testsuite/gdb.ada/var_shadowing/var_shadowing.adb create mode 100755 gdb/testsuite/gdb.base/var-shadowing.c create mode 100755 gdb/testsuite/gdb.base/var-shadowing.exp create mode 100644 gdb/testsuite/gdb.base/var-shadowing2.c create mode 100644 gdb/testsuite/gdb.mi/mi-var-shadowing.c create mode 100644 gdb/testsuite/gdb.mi/mi-var-shadowing.exp create mode 100755 gdb/testsuite/gdb.rust/var_reuse.exp create mode 100755 gdb/testsuite/gdb.rust/var_reuse.rs -- 2.51.1 --===============3090843006903474262== Content-Type: multipart/alternative; boundary="===============5078442206526900344==" MIME-Version: 1.0 Content-Disposition: inline --===============5078442206526900344== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Intel Deutschland GmbH Registered Address: Dornacher Stra=C3=9Fe 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============5078442206526900344== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
Intel Deutschland GmbH
Registered Address: Dornacher Stra=C3= =9Fe 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.deManaging Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell<= div>Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: M= unich
Commercial Register: Amtsgericht M=C3=BCnchen HRB 186928 --===============5078442206526900344==-- --===============3090843006903474262==--