From 30fc2ba22b469e38bc40e47f517988e418c178f3 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 23 Jul 2018 23:46:49 +0200 Subject: Avoided to print the routine namespace twice. --- src/analysis/routine.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/analysis/routine.c b/src/analysis/routine.c index f227cba..1d03ad7 100644 --- a/src/analysis/routine.c +++ b/src/analysis/routine.c @@ -846,14 +846,19 @@ char *g_binary_routine_to_string(const GBinRoutine *routine, bool include) } - name = g_binary_routine_get_label(routine); - - if (name != NULL) + if (routine->full_name != NULL) { + name = g_data_type_to_string(routine->full_name, true); + result = stradd(result, name); + free(name); + } + else if (routine->name != NULL) + result = stradd(result, routine->name); + /* Liste des arguments */ result = stradd(result, "("); -- cgit v0.11.2-87-g4458