From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by sourceware.org (Postfix) with ESMTPS id 314CE3858D20 for ; Mon, 15 Jan 2024 13:17:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 314CE3858D20 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 314CE3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705324630; cv=none; b=lN/L+2xZuv2YGFFNbRIfjWsBczhOzgQwI/jhaEA5vZgeWXIEMBTuGoVmuZQ11SqDXiH4IK5KfILhOd8AJFMQHHaeWXp0SKoB55mroI5nBNqjuCTZWUylxuZfLPNd4bsCOIbDqxcxCvpCxL+N2goMbCPGxQDk/q6zHoiHiCI3rSo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705324630; c=relaxed/simple; bh=goROcnrkswyRk6XhfUamaR9G/YiWAuFAaYBN+Owd/I0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=P86kQfH/Au4on3CH1zKfykgB0vDOmABUheDnXtI3kEY3uueY1k/lx0l0RylKLCNeZjvDxnsocwBm3yzqadeYU9PoJ1Mmn1rjFcBpIaM/NvqbhXXRKnhpOmwUQ9Hw3p45XqSkQ+vOHD1jD8HNK9/opguizo8V0SjvtNjpcDvKfuo= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1705324627; x=1736860627; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=goROcnrkswyRk6XhfUamaR9G/YiWAuFAaYBN+Owd/I0=; b=eyitQs8DSVMffOxyGnESHQKnqlS8S/96aviMP61gfq7R3cVuC4yfXR+D LYsR5n2l+HWTxG4ZjFEamh9AnU8J5D1AxMfUtMZ+/nTUalu+3o+GCiLtF ylftSIC+TtqZfRs+DsNj2ua0j0wl1GYpfXmznF9bmGauqGuef/G+vEuRW EPTKLmnSJYvqM31gNwytuThMQha/8pgmWnij2jQ8Gsx2hKY638KHPwrTx zgv5pE7q+sLzjee/SGRoig7TSG2PSOGswarSxDI2xhuAdb3gvkEAKrHVK /6Vay1mwJMXZNqiIOjK72Qya9xYQa8bKwTcavcYllmvpQG4g8NmmIbxp0 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10953"; a="6979419" X-IronPort-AV: E=Sophos;i="6.04,196,1695711600"; d="scan'208";a="6979419" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2024 05:17:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10953"; a="1114928095" X-IronPort-AV: E=Sophos;i="6.04,196,1695711600"; d="scan'208";a="1114928095" Received: from abijaz-mobl2.ger.corp.intel.com (HELO localhost) ([10.94.253.153]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jan 2024 05:17:01 -0800 From: Abdul Basit Ijaz To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com, thiago.bauermann@linaro.org, tom@tromey.com, simark@simark.ca Subject: [PATCH v5 0/3] Dynamic properties of pointers Date: Mon, 15 Jan 2024 14:16:51 +0100 Message-Id: <20240115131654.19374-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE 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: "Ijaz, Abdul B" Hi! Please find the attached v5 of this series where it contains only the fixes according to the latest feedback on V4 series. V4 can be found here: https://sourceware.org/pipermail/gdb-patches/2024-January/205661.html V3 can be found here: https://sourceware.org/pipermail/gdb-patches/2023-September/202143.html V2 patch 2 was approved by Tom already in this discussion but there are minor changes since then: https://sourceware.org/pipermail/gdb-patches/2023-January/195353.html V2 can be found here: https://sourceware.org/pipermail/gdb-patches/2022-October/192389.html V1 with feedback can be found here: https://sourceware.org/pipermail/gdb-patches/2022-September/191934.html Changes since v4: * Patch 1: Identation changes as per Tom feedback. * Patch 2: Fix Tom feedback related to pointer or reference case handling to include TYPE_CODE_RVALUE_REF also. Following test configurations are tested on Ubuntu22.04 and no regression is seen: gcc64/gcc32/native-gdbserver/native-extended-gdbserver(-m32) I'm looking forward to comments. Thanks & Best Regards, Abdul Basit Bernhard Heckel (1): gdb, types: Resolve pointer types dynamically Ijaz, Abdul B (1): gdb/testsuite: Fix indentation issues in gdb.dwarf2/dynarr-ptr.exp Nils-Christian Kempke (1): gdb, testsuite, fortran: Fix sizeof intrinsic for Fortran pointers gdb/eval.c | 7 + gdb/gdbtypes.c | 7 +- gdb/testsuite/gdb.cp/vla-cxx.cc | 4 + gdb/testsuite/gdb.cp/vla-cxx.exp | 15 ++ gdb/testsuite/gdb.dwarf2/dynarr-ptr.exp | 136 +++++++++--------- .../gdb.fortran/pointer-to-pointer.exp | 2 +- gdb/testsuite/gdb.fortran/pointers.exp | 115 +++++++++++++++ gdb/testsuite/gdb.fortran/pointers.f90 | 29 ++++ gdb/testsuite/gdb.fortran/sizeof.exp | 115 +++++++++++++++ gdb/testsuite/gdb.fortran/sizeof.f90 | 108 ++++++++++++++ gdb/valprint.c | 6 - 11 files changed, 467 insertions(+), 77 deletions(-) create mode 100644 gdb/testsuite/gdb.fortran/pointers.exp create mode 100644 gdb/testsuite/gdb.fortran/sizeof.exp create mode 100644 gdb/testsuite/gdb.fortran/sizeof.f90 -- 2.34.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