Author: avg
Date: Sat Mar 23 08:50:56 2013
New Revision: 248641
URL: http://svnweb.freebsd.org/changeset/base/248641

Log:
  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

Modified:
  head/lib/libdwarf/dwarf_die.c

Modified: head/lib/libdwarf/dwarf_die.c
==============================================================================
--- head/lib/libdwarf/dwarf_die.c       Sat Mar 23 08:48:44 2013        
(r248640)
+++ head/lib/libdwarf/dwarf_die.c       Sat Mar 23 08:50:56 2013        
(r248641)
@@ -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, ui
        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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to