From: Daniel Jacobowitz Date: Sun, 3 Oct 2004 16:16:01 +0000 (+0000) Subject: * dwarf2read.c (read_subrange_type): Add comment for variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd5e69327d812fb2fef90e5aebdd34b66c5f0280;p=binutils-gdb.git * dwarf2read.c (read_subrange_type): Add comment for variable sized arrays. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 99620d3c896..e917a410cbc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-10-03 Daniel Jacobowitz + + * dwarf2read.c (read_subrange_type): Add comment for variable + sized arrays. + 2004-10-03 Paul Hilfinger * Makefile.in (.l.c): Modify rule for compatibility with recent diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index e2caefe16f5..3e24e93d118 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4610,6 +4610,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) low = 1; } + /* FIXME: For variable sized arrays either of these could be + a variable rather than a constant value. We'll allow it, + but we don't know how to handle it. */ attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) low = dwarf2_get_attr_constant_value (attr, 0);