]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
vla: support for DW_AT_count
authorSanimir Agovic <sanimir.agovic@intel.com>
Tue, 19 Nov 2013 12:54:24 +0000 (12:54 +0000)
committerSanimir Agovic <sanimir.agovic@intel.com>
Fri, 11 Apr 2014 12:43:53 +0000 (13:43 +0100)
commite1969afbd454c09c3aad1990305715f70bc47c3c
treeae65349b40e36fffe2862db5558eb2b8904492b0
parentb86138fb0484f42db6cb83abed1e3d0ad2ec4eac
vla: support for DW_AT_count

This patch adds support for DW_AT_count as requested in the code review:

  https://sourceware.org/ml/gdb-patches/2013-11/msg00200.html

* dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
property and store it as the high bound and flag the range accordingly.
* gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
* gdbtypes.h (enum range_flags): New enum.
(struct range_bounds): Add flags member.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/gdbtypes.c
gdb/gdbtypes.h