summaryrefslogtreecommitdiff
path: root/src/format/elf/symbols.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-08-01 14:16:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-08-01 14:16:09 (GMT)
commitbcfcb4ec8b4cf9a35b77e93d172e7dae81e8872a (patch)
tree49320473d97a18f4c2fcb705358871be5a5e33c0 /src/format/elf/symbols.c
parent8725bd7f911369b04a507040256bf889517b377e (diff)
Cleaned the code and provided a fast way to demangle strings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@178 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/elf/symbols.c')
-rw-r--r--src/format/elf/symbols.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/format/elf/symbols.c b/src/format/elf/symbols.c
index 3928c27..8d06c05 100644
--- a/src/format/elf/symbols.c
+++ b/src/format/elf/symbols.c
@@ -218,27 +218,7 @@ static bool load_elf_internal_symbols(GElfFormat *format)
/* Routine */
- printf("routine :: %s\n", name);
- fflush(NULL);
-
- if (1/*strcmp(name, "_Z41__static_initialization_and_destruction_0ii") == 0*/)
- {
-
- routine = try_to_demangle_routine(get_demangler_by_type(DGT_ITANIUM), name);
-
- if (routine == NULL)
- {
- routine = g_binary_routine_new();
- g_binary_routine_set_name(routine, strdup(name));
- printf("failed\n");
- }
- else printf("success\n");
-
- printf(" -->> '%s'\n", g_binary_routine_get_name(routine));
-
- //exit(0);
-
- }
+ routine = try_to_demangle_routine(name);
g_binary_routine_set_address(routine, ELF_SYM(format, sym, st_value));
g_binary_routine_set_size(routine, ELF_SYM(format, sym, st_size));