From: Tim Wiederhake <tim.wiederhake@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 0/5] Fortran: Array strides
Date: Mon, 11 Sep 2017 12:58:00 -0000 [thread overview]
Message-ID: <1505134663-29374-1-git-send-email-tim.wiederhake@intel.com> (raw)
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
next reply other threads:[~2017-09-11 12:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 12:58 Tim Wiederhake [this message]
2017-09-11 12:58 ` [PATCH 4/5] Fortran: Change subrange enum to bit field Tim Wiederhake
2017-09-15 22:29 ` Simon Marchi
2017-09-11 12:58 ` [PATCH 5/5] Fortran: Enable parsing of stride parameter for subranges Tim Wiederhake
2017-09-11 12:58 ` [PATCH 1/5] Fortran: Move calc_f77_array_dims Tim Wiederhake
2017-09-15 20:22 ` Simon Marchi
2017-09-15 20:28 ` Simon Marchi
2017-09-11 12:58 ` [PATCH 2/5] Fortran: Move value_f90_subarray Tim Wiederhake
2017-09-15 20:27 ` Simon Marchi
2017-09-11 12:58 ` [PATCH 3/5] Fortran: Allow multi-dimensional subarrays Tim Wiederhake
2017-09-15 22:08 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1505134663-29374-1-git-send-email-tim.wiederhake@intel.com \
--to=tim.wiederhake@intel.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox