From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5993608347982910819==" MIME-Version: 1.0 From: Roland McGrath To: elfutils-devel@lists.fedorahosted.org Subject: Re: dwarf_aggregate_size() seems to fall over on pointer types Date: Wed, 01 Oct 2014 13:33:48 -0700 Message-ID: <20141001203348.EE9712C3AAD@topped-with-meat.com> In-Reply-To: 20141001183326.GA25015@blokker.redhat.com --===============5993608347982910819== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > + /* Assume references and pointers have pointer size if not given an > + explicit DW_AT_byte_size. */ > + case DW_TAG_pointer_type: > + case DW_TAG_reference_type: > + case DW_TAG_rvalue_reference_type: > + return die->cu->address_size; This seems reasonable to me. --===============5993608347982910819==--