summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-03-11 21:57:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-03-11 21:57:05 (GMT)
commit8088f1cbb4304c686ff41520099707a333084a4e (patch)
tree147411c3f90097dc1ae950ec390df2dfccf07ad7 /src/format
parenta33dd28e763e3a8b04145fb549aca9320e100a4b (diff)
Defined a new Dex demangler with MUTF-8 support as plugin.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/format-int.h3
-rw-r--r--src/format/format.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/format/format-int.h b/src/format/format-int.h
index 5c1ae07..e01b597 100644
--- a/src/format/format-int.h
+++ b/src/format/format-int.h
@@ -30,6 +30,7 @@
#include "preload.h"
#include "../gtkext/gtkstatusstack.h"
+#include "../mangling/demangler.h"
@@ -68,6 +69,8 @@ struct _GBinFormat
GBinContent *content; /* Contenu binaire à étudier */
+ GCompDemangler *demangler; /* Décodage de noms privilégié */
+
virt_t *entry_points; /* Points d'entrée du code */
size_t ep_count; /* Nombre de ces points */
diff --git a/src/format/format.c b/src/format/format.c
index 89db51d..f71cc8f 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -144,6 +144,9 @@ static void g_binary_format_init(GBinFormat *format)
static void g_binary_format_dispose(GBinFormat *format)
{
+ if (format->demangler != NULL)
+ g_object_unref(format->demangler);
+
g_object_unref(format->info);
g_rw_lock_clear(&format->syms_lock);