svn commit: r260809 - projects/elftoolchain/cddl/contrib/opensolaris/tools/ctf/cvt

Kai Wang kaiw at FreeBSD.org
Fri Jan 17 08:44:13 UTC 2014


Author: kaiw
Date: Fri Jan 17 08:44:12 2014
New Revision: 260809
URL: http://svnweb.freebsd.org/changeset/base/260809

Log:
  We should not set the unnamed DIE's name to "__anon__" since that will
  bring back a known issue with DTrace regarding type name
  comparison. Instead, we can set the name to an empty string.
  
  Pointed out by:	     avg

Modified:
  projects/elftoolchain/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c

Modified: projects/elftoolchain/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
==============================================================================
--- projects/elftoolchain/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c	Fri Jan 17 08:21:09 2014	(r260808)
+++ projects/elftoolchain/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c	Fri Jan 17 08:44:12 2014	(r260809)
@@ -432,7 +432,7 @@ die_name(dwarf_t *dw, Dwarf_Die die)
 
 	(void) die_string(dw, die, DW_AT_name, &str, 0);
 	if (str == NULL)
-		str = xstrdup("__anon__");
+		str = xstrdup("");
 
 	return (str);
 }


More information about the svn-src-projects mailing list