]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
vla: add stride support to fortran arrays.
authorKeven Boell <keven.boell@intel.com>
Wed, 28 May 2014 13:44:11 +0000 (14:44 +0100)
committerBernhard Heckel <bernhard.heckel@intel.com>
Wed, 7 Sep 2016 10:08:25 +0000 (12:08 +0200)
commit4efec01384648183cff07a8d6f050e47074ecfcd
treed118ab7eafc553f87f415a39ae4bf149d29c1f42
parent538707a5b434ff611d18354151cc9c494c3a5a6a
vla: add stride support to fortran arrays.

2014-05-28  Bernhard Heckel  <bernhard.heckel@intel.com>
            Sanimir Agovic  <sanimir.agovic@intel.com>
            Keven Boell  <keven.boell@intel.com>

gdb/Changelog:
* dwarf2read.c (read_subrange_type): Read dynamic
stride attributes.
* gdbtypes.c (create_array_type_with_stride): Add
stride support
(create_range_type): Add stride parameter.
(create_static_range_type): Pass default stride
parameter.
(resolve_dynamic_range): Evaluate stride baton.
* gdbtypes.h (TYPE_BYTE_STRIDE): New macro.
(TYPE_BYTE_STRIDE_BLOCK): New macro.
(TYPE_BYTE_STRIDE_LOCLIST): New macro.
(TYPE_BYTE_STRIDE_KIND): New macro.
* valarith.c (value_subscripted_rvalue): Use stride.

gdb/testsuite/Changelog:
* vla-stride.exp: New file.
* vla-stride.f90: New file.

Change-Id: I3cd90c5514dc8ea8c0f7b67f450d9a45822257dc
gdb/dwarf2read.c
gdb/f-valprint.c
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/testsuite/gdb.fortran/vla-stride.exp [new file with mode: 0644]
gdb/testsuite/gdb.fortran/vla-stride.f90 [new file with mode: 0644]
gdb/valarith.c