From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by sourceware.org (Postfix) with ESMTPS id B8D563857C5E for ; Fri, 20 Aug 2021 11:06:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8D563857C5E X-IronPort-AV: E=McAfee;i="6200,9189,10081"; a="196336759" X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="196336759" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 04:06:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,337,1620716400"; d="scan'208";a="490425576" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga008.fm.intel.com with ESMTP; 20 Aug 2021 04:06:49 -0700 Received: from labpc2030.iul.intel.com (labpc2030.iul.intel.com [172.28.48.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with SMTP id 17KB6mDv012271; Fri, 20 Aug 2021 12:06:48 +0100 Received: by labpc2030.iul.intel.com (sSMTP sendmail emulation); Fri, 20 Aug 2021 13:06:47 +0200 From: "abdul.b.ijaz" To: gdb-patches@sourceware.org Cc: abdul.b.ijaz@intel.com, felix.willgerodt@intel.com, Tankut.Baris.Aktemur@intel.com Subject: [PATCH 0/1] Fix variable length strings array for FORTRAN Date: Fri, 20 Aug 2021 13:06:37 +0200 Message-Id: <20210820110638.26648-1-abdul.b.ijaz@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_PASS, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2021 11:06:54 -0000 Hi All, GDB is not able to print FORTRAN variable length string array value when dwarf info contains DW_AT_string_length only regarding the string length information. So patch update handing of dynamic array for such cases. GDB Testsuite is executed using the patch and there is no regression seen as compare to master on Ubuntu 18.04 machine. Best Regards, Abdul Basit Abdul Basit Ijaz (1): gdb: Fix arrays of variable length strings for FORTRAN gdb/c-valprint.c | 1 + gdb/gdbtypes.c | 12 ++++-- gdb/testsuite/gdb.fortran/vla-array.exp | 57 +++++++++++++++++++++++++ gdb/testsuite/gdb.fortran/vla-array.f90 | 44 +++++++++++++++++++ 4 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 gdb/testsuite/gdb.fortran/vla-array.exp create mode 100644 gdb/testsuite/gdb.fortran/vla-array.f90 -- 2.31.1