summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-11-27 23:15:45 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-11-27 23:15:45 (GMT)
commitc81d2f989a14ed083bd99eff91791eca29bf3799 (patch)
tree77af6a977926dabde42d2506556da483fe876116 /src/format
parent9cc97d4fe2cd735d60a9ee2bb2f016a252b3a4d4 (diff)
Logged loaded formats.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/executable.c16
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 */
-
}