From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id lqpFE5TqyGrzfx8AWB0awg (envelope-from ) for ; Fri, 09 Oct 2026 09:22:28 -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=ZlQeZYhy; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 332241E04E; Fri, 09 Oct 2026 09:22: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=-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=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 62DFE1E04E for ; Fri, 09 Oct 2026 09:22:26 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 475E94BA2E2C for ; Fri, 9 Oct 2026 13:22:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 475E94BA2E2C 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=ZlQeZYhy Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by sourceware.org (Postfix) with ESMTPS id 6D0DD4BA2E11 for ; Fri, 9 Oct 2026 13:21:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6D0DD4BA2E11 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 6D0DD4BA2E11 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791552110; cv=none; b=MLeIx7egwZVAPRj56QjZdDEfcjzbDTts/mbJvlEdSzzMavwPo/FIrYxQHu1bUlfOeLKV8AcFhG/Vsi/IofUD6H83cNq9wWtTn6WO/1JeN/7U9d9E5vRkf8nObDbI0Q/vnTNo3KnTqq3CkprxjVYy4VRH0001tQh+rGW+CPMh1L8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1791552110; c=relaxed/simple; bh=9qMLmBN+6DXmBVbgqR+/Ro+eNlC6x+JklCby4IHGm2s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=gIpDxM/gK+6yD6Y/nh9xAnCmtPtx8bAU+YWDmK4BAIXLY6xDfgs39JQ/B3wKkTALXtSLkqW1+FBnW/SrSz3rDb/1nkuzDsMQTILabz9Qs1jxPX4C9uMMIPGjvb4tSncZJGesodx8bOGeocZzS4V85ISmKdU8or6wSeQHjOIXVdI= 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=ZlQeZYhy DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D0DD4BA2E11 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1791552110; x=1823088110; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9qMLmBN+6DXmBVbgqR+/Ro+eNlC6x+JklCby4IHGm2s=; b=ZlQeZYhyW+/Xy0LZrRiXr3bALs1Z1YWed+laGk95hfKF7MuL7ytuhlL8 CSXm1BXENNhJYdMbsw8Q7uZHrnMxLrCAmzxQ7VXsF90DDRz8n1vIamzxk pDEg49AhfPsmwZHyFRwXuWi1MocDsorA2MPJbux4klVPT1eWos5ZMpMqU JdCFMxfxSgTj5B99kVhkUx4Iu+W1voIYHhT2opmul2OzdIAFRLcPK881z FpmnuUztAE7ZHwlvEoCVvdMdIT7VBs75r/LHnV3BUDlSMc/CvjMonrQ0E 3GmTFj/XKmpwUSu3VDt7GbSeow1e3sWmRcQ/XRWGUWUgSR6cbj12jxLk8 w==; X-CSE-ConnectionGUID: VbpATp/+Roq9pdEAMRQH1g== X-CSE-MsgGUID: T7IdDV+SQu2hd+IlkkXmdg== X-IronPort-AV: E=McAfee;i="6800,10657,11930"; a="447163" X-IronPort-AV: E=Sophos;i="6.27,148,1787036400"; d="scan'208";a="447163" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2026 06:21:48 -0700 X-CSE-ConnectionGUID: H7tEAg4pSU2hY6LQHJUqrQ== X-CSE-MsgGUID: LJtl5sr2Qoqhe5MFlrRn1w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,148,1787036400"; d="scan'208";a="309455" Received: from dut1048pvc.igk.intel.com (HELO localhost) ([10.211.177.228]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2026 06:21:47 -0700 From: Stephan Rohr To: gdb-patches@sourceware.org Cc: keiths@redhat.com Subject: [PATCH v2 0/1] gdb: fix path expression for anonymous union members Date: Fri, 9 Oct 2026 13:21:38 +0000 Message-ID: <20261009132139.37218-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" Hi Keith, thanks for your feedback. I extended the heuristics based on your feedback. Changes since v1: - Updated the heuristic in mi-support.exp to handle the case of a member with type == name correctly. Added a regression test for this case. Thanks Stephan Bobko, Sergey (1): gdb: fix path expression for anonymous union members gdb/c-varobj.c | 89 +++++++++++++++++++----------- gdb/testsuite/gdb.mi/mi-var-cp.cc | 22 +++++++- gdb/testsuite/gdb.mi/mi-var-cp.exp | 22 ++++++++ gdb/testsuite/lib/mi-support.exp | 18 +++++- 4 files changed, 118 insertions(+), 33 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.