summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-19 18:55:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-19 18:55:50 (GMT)
commit5d94aa1a1e3af384307bb9d760410b61a33e7323 (patch)
tree916d51f04e1a2cc9473fb841aec3d54d6f0a809c /plugins
parent046283038b3e3c8439d71914373b7ac12ee24144 (diff)
Set Itanium as default demangler for ELF.
Diffstat (limited to 'plugins')
-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);
}