fort_dyn_array: Support evaluation of dynamic elements inside arrays.
authorBernhard Heckel <bernhard.heckel@intel.com>
Tue, 26 Apr 2016 14:38:19 +0000 (16:38 +0200)
committerBernhard Heckel <bernhard.heckel@intel.com>
Tue, 26 Apr 2016 14:38:19 +0000 (16:38 +0200)
commit8f07e298b16e6419a11f9e9d75b15658e42ea775
tree0fe5a42edc4159d987214b1423591c1f9e1b054b
parent9920b4348edbdd83e3f91c85d7174cb92bba204d
fort_dyn_array: Support evaluation of dynamic elements inside arrays.

Resolve type of an array's element to be printed in case it is dynamic.
Otherwise we don't use the correct boundaries nor the right location.

Before:
  ptype fivearr(1)
  type = Type five
      Type one
          integer(kind=4) :: ivla(34196784:34196832,34197072:34197120,34197360:34197408)
      End Type one :: tone
  End Type five

After:
  ptype fivearr(1)
  type = Type five
      Type one
          integer(kind=4) :: ivla(2,4,6)
      End Type one :: tone
  End Type five

2016-04-26  Bernhard Heckel  <bernhard.heckel@intel.com>

gdb/Changelog:
* valarith.c (value_address): Resolve dynamic types.

gdb/testsuite/Changelog:
* gdb.fortran/vla-type.f90: Add test for static and dynamic arrays
of dynamic types.
* gdb.fortran/vla-type.exp: Add test for static and dynamic arrays
of dynamic types.
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.fortran/vla-type.exp
gdb/testsuite/gdb.fortran/vla-type.f90
gdb/valarith.c
This page took 0.025758 seconds and 4 git commands to generate.