Message ID | 20241025143746.1974-1-abdul.b.ijaz@intel.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 017003858D35 for <patchwork@sourceware.org>; Fri, 25 Oct 2024 14:38:33 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by sourceware.org (Postfix) with ESMTPS id 2DC433858D21 for <gdb-patches@sourceware.org>; Fri, 25 Oct 2024 14:38:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DC433858D21 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 2DC433858D21 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729867084; cv=none; b=FyS4C/cNBSUAm1oC3Ae4ZT5yBRCuuDXEcEU/7h3LNX9O4mm5OLTqgCtdke/bqhKE/YEodtkrRpjI8c75/kCFCi85uEHbqIJF2dIXRz0YwE4H5wV9MOwxEIFF80h5bcRTJzxPlHxO7ltHWA59igq88PbnA54GhilDZ6izhDEA4Zc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729867084; c=relaxed/simple; bh=uBfjFI32tUWMDOCrt7iauicUBjBn7Xj/6hNbYd4IfUg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=fKk3OHB/C8wXsTfN0ZEByNpgdUCn52TXdnkhfLCePsxCMU7BHfMpriRdpI6ofwOtT5jDadw0hZeUGhaZ1Jx6ce/MBqZ2ee02qiUFA/jNk5Jy4mtTgwRtwRGdb/1X/FyAd7t+sx3Su0uIGm5OH9QmjhRQHiGrIMF+GzeBJISu9gM= 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=1729867082; x=1761403082; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=uBfjFI32tUWMDOCrt7iauicUBjBn7Xj/6hNbYd4IfUg=; b=NWxk5QPVVzdiABxug+Ok/3cCd0ILzDVPqZjPYa0Na9xS+QiyE854Njig qXgVkil4QxbzhBuMIg7U+Qg+LDSN0wECO5GjBrhim365avFFpUNLAvw8K Jt/bz4qrtHjw/DkodoV5/sp8TCryAiovenYP6vIvdUDv6fklyr/mq3/HG 5TwwT7YxwdUHp3ph3bl/GSewL7uy8iUWic/MthYf/CDLQ3s0JQRPunifL zbb0o7GP3/OnmbBoTyFb84M7e6NKWANPZjw3gtFPJ0sKDuH78xOkbk0pd chKYzfUZQ7IafkQHyNcoSYHFqqrpPqtSIc8WdAFUMAOWYbLNPwpxrVruu A==; X-CSE-ConnectionGUID: EyMarHp/R1eqG6nnC8ZYUQ== X-CSE-MsgGUID: zthfqoIAT5qMDEyjG3t6AA== X-IronPort-AV: E=McAfee;i="6700,10204,11222"; a="29402456" X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="29402456" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 07:38:01 -0700 X-CSE-ConnectionGUID: +CEA4djoSayc8UfH4eWM/g== X-CSE-MsgGUID: vNzdjL5BSj2wHefG5NGolQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,232,1725346800"; d="scan'208";a="81040266" Received: from abijaz-mobl2.ger.corp.intel.com (HELO localhost) ([10.245.130.219]) by fmviesa008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2024 07:37:59 -0700 From: Abdul Basit Ijaz <abdul.b.ijaz@intel.com> To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com, tom@tromey.com, aburgess@redhat.com Subject: [PATCH v8 0/1] Fix arrays of variable length strings for FORTRAN Date: Fri, 25 Oct 2024 16:37:45 +0200 Message-Id: <20241025143746.1974-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-4.9 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 autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Fix arrays of variable length strings for FORTRAN
|
|
Message
Abdul Basit Ijaz
Oct. 25, 2024, 2:37 p.m. UTC
From: "Ijaz, Abdul B" <abdul.b.ijaz@intel.com>
Hi All,
This patch fix arrays of variable length strings for FORTRAN.
V7 of this series can be found here:
https://sourceware.org/pipermail/gdb-patches/2024-October/212292.html
Changes since V7:
* Move TYPE_CODE_STRING from c-valueprint to generic_value_print as per
the feedback from Tom in:
https://sourceware.org/pipermail/gdb-patches/2024-October/212451.html
* c-valueprint already has better handling to print string till the first
null character instead of printing each character like an array. So,
accordingly same handling is done in generic_value_print for strings.
Following test configurations are tested and no regression is seen:
gcc64/gcc32/native-gdbserver.
I'm looking forward to comments.
Best Regards,
Abdul Basit
Ijaz, Abdul B (1):
fortran: Fix arrays of variable length strings for FORTRAN
gdb/gdbtypes.c | 39 +++++++++++-
gdb/testsuite/gdb.fortran/string-types.exp | 4 +-
gdb/testsuite/gdb.fortran/vla-array.exp | 60 ++++++++++++++++++
gdb/testsuite/gdb.fortran/vla-array.f90 | 45 +++++++++++++
gdb/testsuite/gdb.opt/fortran-string.exp | 2 +-
gdb/valprint.c | 74 ++++++++++++++++++++++
6 files changed, 219 insertions(+), 5 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/vla-array.exp
create mode 100644 gdb/testsuite/gdb.fortran/vla-array.f90