dwarf_aggregate_size() seems to fall over on pointer types
Conrad Rad
cse.cem at gmail.com
Wed Oct 1 19:10:51 UTC 2014
On Wed, Oct 1, 2014 at 2:33 PM, Mark Wielaard <mjw at redhat.com> wrote:
> On Wed, Oct 01, 2014 at 10:46:52AM -0700, Josh Stone wrote:
> How about the attached patch? (I haven't yet looked at the MIPS issue,
> but think it reasonable to require the producer to add an explicit
> DW_AT_byte_size if the assumption of address size is not correct.)
On my repro, it fixes the pointer member, but not the array-of-pointer member.
struct b {
char *d;
void *e[3];
...
};
$ ./repro a.out:
...
agg_size(b. (type ) d): 8, 0xffffffff
...
agg_size(b. (type ) e): -1, 0xffffffff
...
Thanks,
Conrad
More information about the elfutils-devel
mailing list