This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/6] fortran: multi-dimensional subarrays with strides
- From: christoph dot t dot weinmann at intel dot com
- To: jan dot kratochvil at redhat dot com, gdb-patches at sourceware dot org
- Cc: christoph dot t dot weinmann at intel dot com
- Date: Fri, 26 Feb 2016 14:10:53 +0100
- Subject: [PATCH v2 0/6] fortran: multi-dimensional subarrays with strides
- Authentication-results: sourceware.org; auth=none
From: Christoph Weinmann <christoph.t.weinmann@intel.com>
Hi Jan, all,
I reworked a patch series I was working on some time ago. At that time I was
blocked by missing legal paperwork, and if I am right this obstacle no longer
exists.
The series starts with enabling subarray printing for multi-dimensional arrays,
and then adds the ability to print certain subarray elements specified by
stride values.
To Jan parts of it may look familiar, I think.
I found and fixed an issue with the start index when slicing an array with neg-
ative indices. And I also updated the tests, which were causing failures on 32
bit OSes. The array dimensions in the test were wrong, so this was addressed.
Additional feedback is very much appreciated!
Thanks,
Christoph
Christoph Weinmann (6):
fortran: allow multi-dimensional subarrays
fortran: combine subarray and string computation
fortran: change subrange enum to bit field
fortran: enable parsing of stride parameter for subranges
fortran: calculate subarray with stride values.
fortran: test cases for subarray strides and slices
gdb/eval.c | 386 ++++++++++++++++++++-----
gdb/f-exp.y | 42 ++-
gdb/f-lang.h | 7 +-
gdb/parse.c | 24 +-
gdb/testsuite/gdb.fortran/static-arrays.exp | 421 ++++++++++++++++++++++++++++
gdb/testsuite/gdb.fortran/static-arrays.f90 | 55 ++++
gdb/valops.c | 196 +++++++++++--
gdb/value.h | 2 +
8 files changed, 1009 insertions(+), 124 deletions(-)
create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.exp
create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.f90
--
2.5.0