From: Julian Seward Date: Mon, 26 Jan 2009 15:02:20 +0000 (+0000) Subject: merge r9055: Accept 'enum' type DIEs that do not have any names X-Git-Tag: svn/VALGRIND_3_4_1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44821457e7e8ec16c4a01aa289e9aa6ac51da561;p=thirdparty%2Fvalgrind.git merge r9055: Accept 'enum' type DIEs that do not have any names git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9073 --- diff --git a/coregrind/m_debuginfo/readdwarf3.c b/coregrind/m_debuginfo/readdwarf3.c index 12b627ea44..2014e09a35 100644 --- a/coregrind/m_debuginfo/readdwarf3.c +++ b/coregrind/m_debuginfo/readdwarf3.c @@ -2236,9 +2236,14 @@ static void parse_type_DIE ( /*MOD*/XArray* /* of TyEnt */ tyents, typeE.Te.TyEnum.szB = cts; } } + + if (!typeE.Te.TyEnum.name) + typeE.Te.TyEnum.name + = ML_(dinfo_strdup)( "di.readdwarf3.pTD.enum_type.3", + "" ); + /* Do we have something that looks sane? */ - if (typeE.Te.TyEnum.szB == 0 /* we must know the size */ - /* But the name can be present, or not */) + if (typeE.Te.TyEnum.szB == 0 /* we must know the size */) goto bad_DIE; /* On't stack! */ typestack_push( cc, parser, td3, &typeE, level );