From 5d94aa1a1e3af384307bb9d760410b61a33e7323 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Thu, 19 Jul 2018 20:55:50 +0200 Subject: Set Itanium as default demangler for ELF. --- plugins/dex/format.c | 2 +- plugins/elf/format.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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 #include #include #include @@ -31,6 +32,7 @@ #include +#include #include #include @@ -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); } -- cgit v0.11.2-87-g4458