summaryrefslogtreecommitdiff
path: root/plugins/elf
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/elf
parent046283038b3e3c8439d71914373b7ac12ee24144 (diff)
Set Itanium as default demangler for ELF.
Diffstat (limited to 'plugins/elf')
-rw-r--r--plugins/elf/format.c8
1 files changed, 8 insertions, 0 deletions
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);
}