aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-10-03 16:16:01 +0000
committerDaniel Jacobowitz <drow@false.org>2004-10-03 16:16:01 +0000
commitdd5e69327d812fb2fef90e5aebdd34b66c5f0280 (patch)
tree8519c0d045a7e1fe51df1eb10fa281e785ef0d05 /gdb/dwarf2read.c
parente07c999f48129a8ec92c81a135e6f24ac8d248ca (diff)
downloadgdb-dd5e69327d812fb2fef90e5aebdd34b66c5f0280.zip
gdb-dd5e69327d812fb2fef90e5aebdd34b66c5f0280.tar.gz
gdb-dd5e69327d812fb2fef90e5aebdd34b66c5f0280.tar.bz2
* dwarf2read.c (read_subrange_type): Add comment for variable
sized arrays.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index e2caefe..3e24e93 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);