This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: dwarf_aggregate_size() seems to fall over on pointer types
- From: Conrad Rad <cse dot cem at gmail dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 01 Oct 2014 15:10:51 -0400
- Subject: Re: dwarf_aggregate_size() seems to fall over on pointer types
On Wed, Oct 1, 2014 at 2:33 PM, Mark Wielaard <mjw@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