summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/dex/format.c2
-rw-r--r--plugins/elf/format.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/dex/format.c b/plugins/dex/format.c
index b69cc76..af005e6 100644
--- a/plugins/dex/format.c
+++ b/plugins/dex/format.c
@@ -187,7 +187,7 @@ static void g_dex_format_class_init(GDexFormatClass *klass)
static void g_dex_format_init(GDexFormat *format)
{
- GBinFormat *bin_format; /* Format parent à compléter #1*/
+ GBinFormat *bin_format; /* Format parent à compléter */
bin_format = G_BIN_FORMAT(format);
diff --git a/plugins/elf/format.c b/plugins/elf/format.c
index d41ba00..340c2c7 100644
--- a/plugins/elf/format.c
+++ b/plugins/elf/format.c
@@ -24,6 +24,7 @@
#include "format.h"
+#include <assert.h>
#include <malloc.h>
#include <stddef.h>
#include <stdio.h>
@@ -31,6 +32,7 @@
#include <i18n.h>
+#include <core/demanglers.h>
#include <core/logs.h>
#include <plugins/pglist.h>
@@ -183,6 +185,12 @@ static void g_elf_format_class_init(GElfFormatClass *klass)
static void g_elf_format_init(GElfFormat *format)
{
+ GBinFormat *bin_format; /* Format parent à compléter */
+
+ bin_format = G_BIN_FORMAT(format);
+
+ bin_format->demangler = get_compiler_demangler_for_type("itanium");
+ assert(bin_format->demangler != NULL);
}