diff options
Diffstat (limited to 'src/format')
| -rw-r--r-- | src/format/executable.c | 16 | 
1 files changed, 11 insertions, 5 deletions
| 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 */ -  } | 
