From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62028 invoked by alias); 14 Oct 2016 11:54:26 -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 61998 invoked by uid 89); 14 Oct 2016 11:54:26 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy= X-HELO: mga06.intel.com Received: from mga06.intel.com (HELO mga06.intel.com) (134.134.136.31) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Oct 2016 11:54:15 +0000 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP; 14 Oct 2016 04:54:13 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga006.fm.intel.com with ESMTP; 14 Oct 2016 04:54:12 -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 u9EBsCW7014353; Fri, 14 Oct 2016 12:54:12 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id u9EBsBkD010681; Fri, 14 Oct 2016 13:54:11 +0200 Received: (from heckel@localhost) by ulvlx001.iul.intel.com with œ id u9EBsBxC010678; Fri, 14 Oct 2016 13:54:11 +0200 From: Bernhard Heckel To: qiyaoltc@gmail.com, brobecker@adacore.com Cc: gdb-patches@sourceware.org, Bernhard Heckel Subject: [PATCH V5 0/6] Fortran: Resolve target types of pointers. Date: Fri, 14 Oct 2016 11:54:00 -0000 Message-Id: <1476446044-10408-1-git-send-email-bernhard.heckel@intel.com> X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00434.txt.bz2 Addressed in V5: - Fixed several "line to long" issues - include - Don't compare bool-like values against 0/1 Addressed in V4: - Fix indentation in f-typeprint. Addressed in V3: - Don't resolve target types of pointers when resolving pointer types. - Address pointers to dynamic types in C99 as well. - Resolve dynamic target types of pointers when actual needed. - Fix some type naming in Fortran testcases. Addressed in V2: - The type of the pointer should be known regardless it is associated with target or not, [PATCH V2 1/5]. - Removed [PATCH V1 1/3], moved tests to [PATCH V2 2/5]. - Added tests to print derefenced pointers, [PATCH V2 2/5]. - Fix address print of not allocated arrays/pointer to not allocated types, [PATCH V2 4/5] Bernhard Heckel (6): Fortran: Testsuite, fix differences in type naming. Fortran: Resolve dynamic properties of pointer types. Typeprint: Resolve any dynamic target type of a pointer. Fortran: Typeprint, fix dangling types. Resolve dynamic target types of pointers. Fortran: Testsuite, add cyclic pointers. gdb/NEWS | 2 + gdb/c-valprint.c | 22 +++++ gdb/f-typeprint.c | 93 +++++++++--------- gdb/gdbtypes.c | 29 +++++- gdb/testsuite/gdb.cp/vla-cxx.cc | 7 ++ gdb/testsuite/gdb.cp/vla-cxx.exp | 11 +++ gdb/testsuite/gdb.fortran/pointers.exp | 157 +++++++++++++++++++++++++++++++ gdb/testsuite/gdb.fortran/pointers.f90 | 109 +++++++++++++++++++++ gdb/testsuite/gdb.fortran/print_type.exp | 100 ++++++++++++++++++++ gdb/testsuite/gdb.fortran/vla-ptype.exp | 12 +-- gdb/testsuite/gdb.fortran/vla-type.exp | 7 +- gdb/testsuite/gdb.fortran/vla-value.exp | 13 ++- gdb/testsuite/gdb.mi/mi-var-child-f.exp | 8 +- gdb/testsuite/gdb.mi/mi-vla-fortran.exp | 27 +++--- gdb/typeprint.c | 19 ++++ gdb/valops.c | 16 +++- gdb/valprint.c | 6 -- 17 files changed, 558 insertions(+), 80 deletions(-) create mode 100644 gdb/testsuite/gdb.fortran/pointers.exp create mode 100644 gdb/testsuite/gdb.fortran/pointers.f90 create mode 100755 gdb/testsuite/gdb.fortran/print_type.exp -- 2.7.1.339.g0233b80