diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/binary.c | 9 | ||||
-rw-r--r-- | src/format/executable.c | 16 |
2 files changed, 19 insertions, 6 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c index 8946311..8fc34f2 100644 --- a/src/analysis/binary.c +++ b/src/analysis/binary.c @@ -1430,8 +1430,8 @@ static bool g_loaded_binary_analyze(GLoadedBinary *binary, wgroup_id_t gid, GtkS { bool result; /* Bilan à retourner */ GBinFormat *format; /* Format lié au binaire */ - const char *arch; /* Architecture d'exécution */ const char *desc; /* Description humaine associée*/ + const char *arch; /* Architecture d'exécution */ bool has_virt; /* Présence de virtuel ? */ GProcContext *context; /* Contexte de suivi dédié */ GWidthTracker *tracker; /* Gestionnaire de largeur */ @@ -1440,6 +1440,13 @@ static bool g_loaded_binary_analyze(GLoadedBinary *binary, wgroup_id_t gid, GtkS format = G_BIN_FORMAT(binary->format); + desc = g_binary_format_get_description(format); + + if (desc == NULL) + log_simple_message(LMT_WARNING, _("Unnamed format")); + else + log_variadic_message(LMT_INFO, _("Selected format: %s"), desc); + result = g_binary_format_analyze(format, gid, status); if (!result) goto glba_exit; diff --git a/src/format/executable.c b/src/format/executable.c index fcc0acd..1f21ca3 100644 --- a/src/format/executable.c +++ b/src/format/executable.c @@ -30,6 +30,9 @@ #include <stdlib.h> +#include <i18n.h> + + #include "executable-int.h" #include "format.h" #include "../core/logs.h" @@ -161,17 +164,20 @@ static void g_executable_format_finalize(GExeFormat *format) void g_exe_format_add_debug_info(GExeFormat *format, GDbgFormat *info) { - /* Ajout dans la liste */ + const char *desc; /* Description humaine associée*/ + + desc = g_binary_format_get_description(G_BIN_FORMAT(info)); + + if (desc == NULL) + log_simple_message(LMT_WARNING, _("Unnamed debug information")); + else + log_variadic_message(LMT_INFO, _("Found debug information: %s"), desc); format->debugs = (GDbgFormat **)realloc(format->debugs, ++format->debugs_count * sizeof(GDbgFormat *)); format->debugs[format->debugs_count - 1] = info; - /* Intégration des symboles */ - - /* TODO */ - } |