aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorKeven Boell <keven.boell@intel.com>2016-04-26 16:46:48 +0200
committerBernhard Heckel <bernhard.heckel@intel.com>2016-04-26 16:48:41 +0200
commit3e2e34f8623d9eeb6710d8f3883f26af8b07bbd1 (patch)
tree5e0cd224f61544b60893753d07faf23998512670 /gdb/ChangeLog
parent8f07e298b16e6419a11f9e9d75b15658e42ea775 (diff)
downloadgdb-3e2e34f8623d9eeb6710d8f3883f26af8b07bbd1.zip
gdb-3e2e34f8623d9eeb6710d8f3883f26af8b07bbd1.tar.gz
gdb-3e2e34f8623d9eeb6710d8f3883f26af8b07bbd1.tar.bz2
fort_dyn_array: Use value constructor instead of raw-buffer manipulation.
Instead of pre-computing indices into a fortran array re-use the value_* interfaces to subscript a fortran array. The benefit of using the new interface is that it takes care of dynamic types and resolve them when needed. This fixes issues when printing structures with dynamic arrays from toplevel. Before: (gdb) p twov $1 = ( (( ( 6352320, 0, -66, -1, 267) ( 343476, 1, -15, 1, 0) ( 5, 0, 5, 0, 1) ... After: (gdb) p twov $1 = ( (( ( 1, 1, 1, 1, 1) ( 1, 1, 321, 1, 1) ( 1, 1, 1, 1, 1) ... 2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com> Keven Boell <keven.boell@intel.com> Bernhard Heckel <bernhard.heckel@intel.com> gdb/Changelog: * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove function. (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro. (f77_print_array_1): Use value_subscript to subscript a value array. (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl. (f_val_print): Use value_field to construct a field value. gdb/testsuite/Changelog: * vla-type.exp: Print structure from toplevel.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e512251..1335563 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,15 @@
+2016-04-26 Sanimir Agovic <sanimir.agovic@intel.com>
+ Keven Boell <keven.boell@intel.com>
+ Bernhard Heckel <bernhard.heckel@intel.com>
+
+ * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
+ function.
+ (F77_DIM_SIZE, F77_DIM_OFFSET): Remove macro.
+ (f77_print_array_1): Use value_subscript to subscript a
+ value array.
+ (f77_print_array): Remove call to f77_create_arrayprint_offset_tbl.
+ (f_val_print): Use value_field to construct a field value.
+
2016-04-26 Bernhard Heckel <bernhard.heckel@intel.com>
* valarith.c (value_address): Resolve dynamic types.