From 2d50e830b3e79fa42f303add8a99872897abdc2a Mon Sep 17 00:00:00 2001 From: avg Date: Sat, 23 Mar 2013 08:50:56 +0000 Subject: 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 --- lib/libdwarf/dwarf_die.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libdwarf') diff --git a/lib/libdwarf/dwarf_die.c b/lib/libdwarf/dwarf_die.c index 143e708..486811e 100644 --- a/lib/libdwarf/dwarf_die.c +++ b/lib/libdwarf/dwarf_die.c @@ -29,8 +29,6 @@ #include #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); -- cgit v1.1