libdwarf: anonymous types are expected to have empty type names...

or no type attributes at all.
This is according to DWARF specification.

MFC after:	13 days
This commit is contained in:
Andriy Gapon 2013-03-23 08:50:56 +00:00
parent a47016e9a9
commit 3e67d24489

View File

@ -29,8 +29,6 @@
#include <stdlib.h>
#include "_libdwarf.h"
static const char *anon_name = "__anon__";
int
dwarf_die_add(Dwarf_CU cu, int level, uint64_t offset, uint64_t abnum, Dwarf_Abbrev a, Dwarf_Die *diep, Dwarf_Error *err)
{
@ -57,7 +55,7 @@ dwarf_die_add(Dwarf_CU cu, int level, uint64_t offset, uint64_t abnum, Dwarf_Abb
die->die_abnum = abnum;
die->die_a = a;
die->die_cu = cu;
die->die_name = anon_name;
die->die_name = "";
/* Initialise the list of attribute values. */
STAILQ_INIT(&die->die_attrval);