]> sourceware.org Git - libabigail.git/commit
[dwarf reader] Support reference types without explicit DW_AT_byte_size
authorDodji Seketeli <dodji@redhat.com>
Sat, 22 Aug 2015 07:33:13 +0000 (09:33 +0200)
committerDodji Seketeli <dodji@redhat.com>
Sat, 22 Aug 2015 07:41:23 +0000 (09:41 +0200)
commitae5e1be5c3e345989ae488bfe9fe0e46dd19329f
treedbc0ba808226a075e301ed1128cdb34169676254
parent12123aede64c1c0a40f2c05c4e579376146c3200
[dwarf reader] Support reference types without explicit DW_AT_byte_size

On x86_64 at least, in the debug info emitted by Clang, reference
types don't necessarily have the DW_AT_byte_size property.  In that
case, assume the size of the pointer type is the address size of the
current translation unit, rather than giving up and not building the
type.

* src/abg-dwarf-reader.cc (build_reference_type): If the type DIE
has no DW_AT_byte_size, assume the type size is the translation
unit's address size.
* tests/data/test-read-dwarf/test9-pr18818-clang.so.abi: Adjust.
* tests/data/test-read-dwarf/test12-pr18844.so.abi: Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc
tests/data/test-read-dwarf/test12-pr18844.so.abi
tests/data/test-read-dwarf/test9-pr18818-clang.so.abi
This page took 0.031122 seconds and 5 git commands to generate.