summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-10-01 15:55:39 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-10-01 15:55:39 (GMT)
commitd51fef170f00602744e55a8fdb21a3c7d196696a (patch)
tree5f51c1cdb09669da974c1b99d280a4e7078aab7f /src/core
parent9aa5b354e83825e2d9843aea742aa62221a2130b (diff)
Rewritten the whole support of DEX file format.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@581 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/core')
-rw-r--r--src/core/formats.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/formats.c b/src/core/formats.c
index 1326fc4..5543331 100644
--- a/src/core/formats.c
+++ b/src/core/formats.c
@@ -29,6 +29,7 @@
#include <string.h>
+#include "../format/dex/dex.h"
#include "../format/dwarf/dwarf.h"
#include "../format/dwarf/v2/dwarf.h"
#include "../format/dwarf/v3/dwarf.h"
@@ -195,12 +196,16 @@ bool load_hard_coded_formats_definitions(void)
/* Détections */
+ result &= register_format_matcher(dex_is_matching, NULL);
+
result &= register_format_matcher(dwarf_is_matching, NULL);
result &= register_format_matcher(elf_is_matching, NULL);
/* Chargements */
+ result &= register_format_loader("dex", "Dalvik Executable format", g_dex_format_new);
+
result &= register_format_loader("dwarf_v2", "Debugging With Arbitrary Record Formats (v2)",
g_dwarfv2_format_new);