In article <brtb45$lv0$ XXXX@XXXXX.COM >,
Walter is exactly right.
Dwarf2 spec, sec 5.4:
"Each array dimension is described by a debugging information
entry with either the tag DW_TAG_subrange_type or the tag
DW_TAG_enumeration type. These entries are children of the array
type entry and are ordered to reflect the appearance of the
dimensions to the source program (i.e., leftmost dimension
first, next to leftmost second, and so on)."
So you have to count the children of the DW_TAG_array_type
properly to know the number of dimensions.
David B. Anderson davea at sgi dot com http://www.yqcomputer.com/