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
This commit is contained in:
Kai Wang 2014-01-17 08:44:12 +00:00
parent 1391789ee2
commit aedbdd2c5c

View File

@ -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);
}