On Wed, 2010-01-06 at 04:44 -0800, Roland McGrath wrote:
It turns out that an array_type with no size is a kosher enough
thing.
You're expected to look for the number of elements (really the stride) and
multiply. For the general case that can be some hairy logic. So I added a
new function dwarf_aggregate_size that does this for you. It should handle
everything except the truly hairy cases where some of the sizes involved
are not constants but given as expressions and such, which will probably
always be outside of this sort of C interface in libdw.
Seems you forgot to add dwarf_aggregate_size.c to the git repository.
Could you add and push it?
Thanks,
Mark