vla: support for DW_AT_count
authorSanimir Agovic <sanimir.agovic@intel.com>
Tue, 19 Nov 2013 12:54:24 +0000 (12:54 +0000)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 14 Apr 2014 16:17:54 +0000 (09:17 -0700)
commitc451ebe5dd0c38617c74e0b6f0d5ef3188c25d56
treef650f23b1ab950b2721708e970e05cd2a478986a
parent1d42e4c4d85cb12ce07a5349b1b2e11dce2d077d
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

gdb/ChangeLog:

* 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