diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 21:46:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 21:46:49 (GMT) |
commit | 30fc2ba22b469e38bc40e47f517988e418c178f3 (patch) | |
tree | 3d44ad66b7197af81756ed3745b414777369b4d5 /src/analysis | |
parent | abefe01dd260cddbd253ba0c03d9c903138c71c1 (diff) |
Avoided to print the routine namespace twice.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/routine.c | 11 |
1 files 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, "("); |