mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
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:
committed by
Søren Sandmann Pedersen
parent
4a145a21bc
commit
62c86a1951
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user