From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44729 invoked by alias); 15 Apr 2016 06:42:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 44717 invoked by uid 89); 15 Apr 2016 06:42:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=news X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Apr 2016 06:42:30 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 14 Apr 2016 23:42:28 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga004.fm.intel.com with ESMTP; 14 Apr 2016 23:42:27 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u3F6gRGZ001175; Fri, 15 Apr 2016 07:42:27 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u3F6gR0L030813; Fri, 15 Apr 2016 08:42:27 +0200 Received: (from heckel@localhost) by ulvlx001.iul.intel.com with œ id u3F6gQ5w030809; Fri, 15 Apr 2016 08:42:26 +0200 From: Bernhard Heckel To: qiyaoltc@gmail.com Cc: gdb-patches@sourceware.org, brobecker@adacore.com, Bernhard Heckel Subject: [PATCH V4 0/3] fortran: Enable arrays of structures with dynamic member types. Date: Fri, 15 Apr 2016 06:42:00 -0000 Message-Id: <1460702519-30622-1-git-send-email-bernhard.heckel@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-04/txt/msg00341.txt.bz2 Addressed in V4: [Patch V4 1/3] * gdbtypes.c (resolve_dynamic_struct): extra pair of parens and rephrase comment. (remove_dynamic_property): Fix misspelled word. value.c (set_internal_var): Add comments. Addressed in V3: [Patch V3 1/3] * value.c (value_address): Explicit compare against NULL. (set_value_component_location): Fix line too long. (set_value_component_location): Explicit compare against NULL. (clear_internalvar): Explicit compare against NULL. (set_internalvar): Fix line too long. Addressed in V2: * Commit-Msg: Added missing changes and added some more comments. * NEWS: Added new fortran features. * gdbtypes.c (several comments): Two blanks after dot. (resolve_dynamic_struct): Changed comment why length is not changed for fortran. * valarith.c (value_subscripted_rvalue): Replace variable by NULL. This patch series enables the user to evaluate: 1. Local structures with dynamic member types. 2. Local arrays of structs with dynamic member types. 3. Dynamic arrays of structs with static and/or dynamic member types. Bernhard Heckel (2): fort_dyn_array: Enable dynamic member types inside a structure. fort_dyn_array: Support evaluation of dynamic elements inside arrays. Keven Boell (1): fort_dyn_array: Use value constructor instead of raw-buffer manipulation. gdb/NEWS | 3 + gdb/f-valprint.c | 118 +++++++++---------------- gdb/gdbtypes.c | 44 +++++++++- gdb/gdbtypes.h | 3 + gdb/testsuite/gdb.fortran/vla-type.exp | 153 +++++++++++++++++++++++++++++++++ gdb/testsuite/gdb.fortran/vla-type.f90 | 104 ++++++++++++++++++++++ gdb/valarith.c | 8 ++ gdb/value.c | 39 ++++++++- 8 files changed, 387 insertions(+), 85 deletions(-) create mode 100755 gdb/testsuite/gdb.fortran/vla-type.exp create mode 100755 gdb/testsuite/gdb.fortran/vla-type.f90 -- 2.7.1.339.g0233b80