From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120259 invoked by alias); 11 Sep 2017 12:58:00 -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 119519 invoked by uid 89); 11 Sep 2017 12:57:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-12.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=ii, HERE X-HELO: mga05.intel.com Received: from mga05.intel.com (HELO mga05.intel.com) (192.55.52.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 11 Sep 2017 12:57:58 +0000 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP; 11 Sep 2017 05:57:55 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga005.fm.intel.com with ESMTP; 11 Sep 2017 05:57:54 -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 v8BCvrgH016525; Mon, 11 Sep 2017 13:57:54 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id v8BCvrIn029639; Mon, 11 Sep 2017 14:57:53 +0200 Received: (from twiederh@localhost) by ulvlx001.iul.intel.com with LOCAL id v8BCvrCI029635; Mon, 11 Sep 2017 14:57:53 +0200 From: Tim Wiederhake To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Fortran: Array strides Date: Mon, 11 Sep 2017 12:58:00 -0000 Message-Id: <1505134663-29374-1-git-send-email-tim.wiederhake@intel.com> X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00302.txt.bz2 Hi all, this series adds support for multi-dimensional strides in Fortran. A previous version of this series can be found here: https://sourceware.org/ml/gdb-patches/2015-12/msg00008.html 1| program prog 2| integer :: ary(10,5) = (/ (i,i=1,10) (j, j=1,5) /) 3| end program prog Before: (gdb) print ary(2:4,1:3) A syntax error in expression near ':3'. (gdb) print ary(::2,1) A syntax error in expression, near `:2,1)'. After: (gdb) print ary(2:4,1:3) $1 = ( ( 21, 31, 41) ( 22, 32, 42) ( 23, 33, 43) ) (gdb) print ary(::2,1) $2 = (11, 31, 51, 71, 91) Regards, Tim *** BLURB HERE *** Christoph Weinmann (3): Fortran: Allow multi-dimensional subarrays. Fortran: Change subrange enum to bit field. Fortran: Enable parsing of stride parameter for subranges. Tim Wiederhake (2): Fortran: Move calc_f77_array_dims. Fortran: Move value_f90_subarray. gdb/eval.c | 101 +--------- gdb/expprint.c | 20 +- gdb/expression.h | 17 +- gdb/f-exp.y | 42 +++- gdb/f-lang.c | 250 +++++++++++++++++++++++ gdb/f-lang.h | 15 +- gdb/f-valprint.c | 2 +- gdb/parse.c | 24 ++- gdb/rust-exp.y | 12 +- gdb/rust-lang.c | 17 +- gdb/testsuite/gdb.fortran/static-arrays.exp | 297 ++++++++++++++++++++++++++++ gdb/testsuite/gdb.fortran/static-arrays.f90 | 53 +++++ 12 files changed, 690 insertions(+), 160 deletions(-) create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.exp create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.f90 -- 2.7.4