Demangle instead of strdup.

2006-08-22  Soren Sandmann <sandmann@daimi.au.dk>

	* collector.c (unique_dup): Demangle instead of strdup.
This commit is contained in:
Soren Sandmann
2006-08-26 16:27:00 +00:00
committed by Søren Sandmann Pedersen
parent 4a145a21bc
commit 62c86a1951
3 changed files with 14 additions and 11 deletions

View File

@ -22,6 +22,7 @@
#include "module/sysprof-module.h"
#include "watch.h"
#include "process.h"
#include "elfparser.h"
#include <errno.h>
#include <sys/wait.h>
@ -272,7 +273,7 @@ unique_dup (GHashTable *unique_symbols, const char *sym)
result = g_hash_table_lookup (unique_symbols, sym);
if (!result)
{
result = g_strdup (sym);
result = elf_demangle (sym);
g_hash_table_insert (unique_symbols, (char *)sym, result);
}