This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/6] fortran: multi-dimensional subarrays with strides

From: christoph.t.weinmann <>

Hi Joel, Jan, and everyone else,

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
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.

Any feedback is welcome.


Signed-off-by: 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                                  |  385 ++++++++++++++++++++++-----
 gdb/f-exp.y                                 |   42 +++-
 gdb/f-lang.h                                |    7 +-
 gdb/parse.c                                 |   24 +-
 gdb/testsuite/gdb.fortran/static-arrays.exp |  380 ++++++++++++++++++++++++++
 gdb/testsuite/gdb.fortran/static-arrays.f90 |   55 ++++
 gdb/valops.c                                |  196 ++++++++++++---
 gdb/value.h                                 |    2 +
 8 files changed, 967 insertions(+), 124 deletions(-)
 create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.exp
 create mode 100644 gdb/testsuite/gdb.fortran/static-arrays.f90

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]