From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3123872244438704338==" MIME-Version: 1.0 From: Conrad Rad To: elfutils-devel@lists.fedorahosted.org Subject: Re: dwarf_aggregate_size() seems to fall over on pointer types Date: Wed, 01 Oct 2014 15:10:51 -0400 Message-ID: In-Reply-To: 20141001183326.GA25015@blokker.redhat.com --===============3123872244438704338== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Oct 1, 2014 at 2:33 PM, Mark Wielaard 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 memb= er. 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 --===============3123872244438704338==--