diff options
Diffstat (limited to 'src/format/symbol.c')
-rw-r--r-- | src/format/symbol.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c index b5e329b..3ac2d6d 100644 --- a/src/format/symbol.c +++ b/src/format/symbol.c @@ -27,9 +27,6 @@ #include <string.h> -#include "../analysis/routine.h" - - /* Symbole d'exécutable (instance) */ struct _GBinSymbol @@ -169,7 +166,14 @@ SymbolType g_binary_symbol_get_target_type(const GBinSymbol *symbol) const char *g_binary_symbol_to_string(const GBinSymbol *symbol) { - return (symbol->alt != NULL ? symbol->alt : symbol->name); + const char *result; /* Désignation à retourner */ + + if (symbol->extra.routine != NULL) + result = g_binary_routine_get_name(symbol->extra.routine); + + else result = (symbol->alt != NULL ? symbol->alt : symbol->name); + + return result; } |