From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by sourceware.org (Postfix) with ESMTPS id A74E13857377 for ; Tue, 25 Oct 2022 13:42:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A74E13857377 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666705335; x=1698241335; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=sypKHmwISDyw8TmrHmTFaBfOQrXWS4+C78erwTHyW2w=; b=nvOHYw6syQE+jxxIWRrQ+FtPulvWei68LocYqS/Gr0qHOwQ2WPrCP9oz airPgC+V/LP/s1MGAxUsjdiE92nUrn/Dlww5nSPeZDqxSCsrkWw3Ot9gA iPDyKYA07ucIV0fqaQ/uqNWWhG1JHGEM6w3ZiVH1jlEPz02iWKU0HiFrZ V2uV2ecBLd2ah83J/940WkGS4ex+Mbfo8dg/tWfjGu2H3uv3z58YJ2u7A SHaYYu7isUfmuPSs3R5O1i+wLXW0dM3sy8WhbfI6lRjphPDlrfAddaOnY avgs24tQO2c+WvdINZuAY7CQ728k9/bcYwEXhpIKVL3gmY288qQ0G0xzd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="295077274" X-IronPort-AV: E=Sophos;i="5.95,212,1661842800"; d="scan'208";a="295077274" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2022 06:42:14 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="582775030" X-IronPort-AV: E=Sophos;i="5.95,212,1661842800"; d="scan'208";a="582775030" Received: from labpcdell3650-004.iul.intel.com (HELO localhost) ([172.28.50.126]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2022 06:42:12 -0700 From: Stephan Rohr To: gdb-patches@sourceware.org Cc: tom@tromey.com, simark@simark.ca, "Rohr, Stephan" Subject: [PATCH v2 0/1] gdb/dwarf2: Fix 'rw_pieced_value' for values casted to different type. Date: Tue, 25 Oct 2022 15:42:06 +0200 Message-Id: <20221025134207.1548919-1-stephan.rohr@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: "Rohr, Stephan" Hi all, this is the second version of my patch. Changes since v1: * Remove the 'internal_error' call in 'rw_pieced_value' if an object's 'type' and 'enclosing_type' are not idential. * Added additional test cases. The discussion for v1 can be found at: https://sourceware.org/pipermail/gdb-patches/2022-October/192547.html I appreciate your feedback. Thanks Stephan Rohr, Stephan (1): gdb/dwarf2: Fix 'rw_pieced_value' for values casted to different type. gdb/dwarf2/expr.c | 3 -- gdb/testsuite/gdb.dwarf2/shortpiece.exp | 50 ++++++++++++++++++++++++- 2 files changed, 49 insertions(+), 4 deletions(-) -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928