diff options
author | avg <avg@FreeBSD.org> | 2013-03-23 08:50:56 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-03-23 08:50:56 +0000 |
commit | 2d50e830b3e79fa42f303add8a99872897abdc2a (patch) | |
tree | 71868cc0e1d2d13562fa386ba0c05823d40733c1 /lib/libdwarf | |
parent | 0f9660a6f046df842809e65ec9c455d67d6a66f6 (diff) | |
download | FreeBSD-src-2d50e830b3e79fa42f303add8a99872897abdc2a.zip FreeBSD-src-2d50e830b3e79fa42f303add8a99872897abdc2a.tar.gz |
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
Diffstat (limited to 'lib/libdwarf')
-rw-r--r-- | lib/libdwarf/dwarf_die.c | 4 |
1 files changed, 1 insertions, 3 deletions
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 <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); |