From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id g4foK+KMH2EhNgAAWB0awg (envelope-from ) for ; Fri, 20 Aug 2021 07:07:14 -0400 Received: by simark.ca (Postfix, from userid 112) id A25171EDFB; Fri, 20 Aug 2021 07:07:14 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4E5521EA7E for ; Fri, 20 Aug 2021 07:07:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A59C93847835 for ; Fri, 20 Aug 2021 11:07:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A59C93847835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1629457632; bh=oO9WnVdimFa8TJODmMMAo3K9KIvCP+bp04EDG8j/Xbs=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=djlr3QGJafbwsIdsta7J03TnOnyJbIMPkCUGXSez5ZhzZVmtILrkNQqKzARzp7hH+ +6h/5fX1qJLqn87vrdSR/MOjgyYoSJm5XIjyG/JGIIudTMHQWd/7JyrDPOe+LQqFHx 0kW06NtOmpxJSYAEPpbzeuwHtkNFRVR6NSyKLN1c= 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 To: gdb-patches@sourceware.org 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-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: , From: "abdul.b.ijaz via Gdb-patches" Reply-To: "abdul.b.ijaz" Cc: abdul.b.ijaz@intel.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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