]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug 289360 parse_type_DIE confused by DW_TAG_enumeration_type.
authorMark Wielaard <mark@klomp.org>
Fri, 28 Jun 2013 14:03:58 +0000 (14:03 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 28 Jun 2013 14:03:58 +0000 (14:03 +0000)
commitefcfc55b372bc260601b2e9ed511103cdc50f7b2
tree49279f616a2fcb6cff631a0368747e639f9dff3e
parent2a6f957df4d067b8324d401dcaa19b9f020da637
Bug 289360 parse_type_DIE confused by DW_TAG_enumeration_type.

GCC allows incomplete enums as GNU extension.
http://gcc.gnu.org/onlinedocs/gcc/Incomplete-Enums.html
These are marked as DW_AT_declaration and won't have a size.
They can only be used in declaration or as pointer types.
You can't allocate variables or storage using such an enum type.
So don't require a size for such enum types.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13433
coregrind/m_debuginfo/readdwarf3.c