public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6]  fortran: multi-dimensional subarrays with strides
@ 2016-02-26 13:11 christoph.t.weinmann
  2016-02-26 13:11 ` [PATCH v2 6/6] fortran: test cases for subarray strides and slices christoph.t.weinmann
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: christoph.t.weinmann @ 2016-02-26 13:11 UTC (permalink / raw)
  To: jan.kratochvil, gdb-patches; +Cc: christoph.t.weinmann

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-26 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-26 13:11 [PATCH v2 0/6] fortran: multi-dimensional subarrays with strides christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 6/6] fortran: test cases for subarray strides and slices christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 1/6] fortran: allow multi-dimensional subarrays christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 5/6] fortran: calculate subarray with stride values christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 3/6] fortran: change subrange enum to bit field christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 2/6] fortran: combine subarray and string computation christoph.t.weinmann
2016-02-26 13:11 ` [PATCH v2 4/6] fortran: enable parsing of stride parameter for subranges christoph.t.weinmann
2016-02-26 21:00 ` [PATCH v2 0/6] fortran: multi-dimensional subarrays with strides Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).