This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/5] Fortran: Array strides
- From: Tim Wiederhake <tim dot wiederhake at intel dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 11 Sep 2017 14:57:38 +0200
- Subject: [PATCH 0/5] Fortran: Array strides
- Authentication-results: sourceware.org; auth=none
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