diff options
author | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-04-26 16:28:43 +0200 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-04-26 16:28:43 +0200 |
commit | 9920b4348edbdd83e3f91c85d7174cb92bba204d (patch) | |
tree | b4bd220833e052b26207674262723ae1ab88eabd /gdb/ChangeLog | |
parent | d5486c43728b4fa17c111a301c30a1e072eaec6a (diff) | |
download | gdb-9920b4348edbdd83e3f91c85d7174cb92bba204d.zip gdb-9920b4348edbdd83e3f91c85d7174cb92bba204d.tar.gz gdb-9920b4348edbdd83e3f91c85d7174cb92bba204d.tar.bz2 |
fort_dyn_array: Enable dynamic member types inside a structure.
Fortran supports dynamic types for which bounds, size and location
can vary during their lifetime. As a result of the dynamic
behaviour, they have to be resolved at every query.
This patch will resolve the type of a structure field when it
is dynamic.
2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
2016-04-26 Keven Boell <keven.boell@intel.com>
Before:
(gdb) print threev%ivla(1)
Cannot access memory at address 0x3
(gdb) print threev%ivla(5)
no such vector element
After:
(gdb) print threev%ivla(1)
$9 = 1
(gdb) print threev%ivla(5)
$10 = 42
gdb/Changelog:
* NEWS: Add new supported features for fortran.
* gdbtypes.c (remove_dyn_prop): New.
(resolve_dynamic_struct): Keep type length for fortran structs.
* gdbtypes.h: Forward declaration of new function.
* value.c (value_address): Return dynamic resolved location of a value.
(set_value_component_location): Adjust the value address
for single value prints.
(value_primitive_field): Support value types with a dynamic location.
(set_internalvar): Remove dynamic location property of
internal variables.
gdb/testsuite/Changelog:
* gdb.fortran/vla-type.f90: New file.
* gdb.fortran/vla-type.exp: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5c94832..be192e7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,17 @@ +2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com> + Keven Boell <kevel.boell@intel.com> + + * NEWS: Add new supported features for fortran. + * gdbtypes.c (remove_dyn_prop): New. + (resolve_dynamic_struct): Keep type length for fortran structs. + * gdbtypes.h: Forward declaration of new function. + * value.c (value_address): Return dynamic resolved location of a value. + (set_value_component_location): Adjust the value address + for single value prints. + (value_primitive_field): Support value types with a dynamic location. + (set_internalvar): Remove dynamic location property of + internal variables. + 2016-04-25 Pedro Alves <palves@redhat.com> Yao Qi <yao.qi@linaro.org> |