Message ID | 20230117223430.26151-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 AE33E3858C27 for <patchwork@sourceware.org>; Tue, 17 Jan 2023 22:35:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AE33E3858C27 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673994925; bh=lgPVziGkbQatmyiClnMzbsJqorVV59h2ohH/13kVOJ0=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=D+S1IsUhDnqLsRzIayfJ2c2sCeusjaB1DxApiuiCOzdmUgXcazXGC8fEoeRKvJX7l L5y3hMLAx7iEjNeKSM1IxzSO/MPXiB8jqtb7x5Yob9sHIi46JhlSvk27Z4FqWbBCsC w8DPTHzILYGsqyE6JSq2os6UYyqk+ILzo8L1egMg= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by sourceware.org (Postfix) with ESMTPS id 2A40D3858D35 for <gdb-patches@sourceware.org>; Tue, 17 Jan 2023 22:35:01 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2A40D3858D35 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="389337654" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="389337654" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 14:35:00 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10593"; a="652677336" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="652677336" Received: from labpc2030.iul.intel.com (HELO localhost) ([172.28.48.46]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 14:34:58 -0800 To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com, aburgess@redhat.com Subject: [PATCH v4 0/1] gdb, testsuite: Fix arrays of variable length strings for FORTRAN Date: Tue, 17 Jan 2023 23:34:29 +0100 Message-Id: <20230117223430.26151-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-3.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 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.29 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> From: Abdul Basit Ijaz via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Abdul Basit Ijaz <abdul.b.ijaz@intel.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
gdb, testsuite: Fix arrays of variable length strings for FORTRAN
|
|
Message
Ijaz, Abdul B
Jan. 17, 2023, 10:34 p.m. UTC
Hi All, V4 patch contains the updates based on Andrew recent feedback and fix tests for updated data type of Fortran string arrays. @Andrew thanks alot for the detailed feedback. As per your feedback, I have highlighed the issue in this patch using your changes and updated the test to print and check rank value also for vla string array. This patch is majorly address string array so as you already mentioned this patch would resolve issue for TYPE_CODE_STRING dynamic arrays while for rest it can be fixed later propely. V3 of this series can be found here: https://sourceware.org/pipermail/gdb-patches/2022-May/188725.html Changes since V3: * Update the code as per Andrew feedback to highlight the issue still exist in resolving dynamic arrays. * Update the test to print and check rank of variable length string. * Update gdb.fortran/string-types.exp and gdb.opt/fortran-string.exp tests to handle updated vla array ptype. GDB Testsuite is executed using the patch and there is no regression seen as compare to master on Ubuntu 18.04 machine for unix/native-gdbserver and native-extended.gdbserver configurations. Best Regards, Abdul Basit Abdul Basit Ijaz (1): gdb, testsuite: Fix arrays of variable length strings for FORTRAN gdb/c-valprint.c | 1 + gdb/gdbtypes.c | 45 ++++++++++++++-- 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 +- 6 files changed, 151 insertions(+), 6 deletions(-) create mode 100644 gdb/testsuite/gdb.fortran/vla-array.exp create mode 100644 gdb/testsuite/gdb.fortran/vla-array.f90