diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-12 18:38:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-12 18:38:53 (GMT) |
commit | 3754a5e3edeea98ce426b65772708ae91b291c1f (patch) | |
tree | e292aa254f59e61f6f9672b826f08be6f428ffdd /src/format | |
parent | dcc0438ff24efd5958b8d46940eb395ff2b7ed77 (diff) |
Removed most of the code related to non-working decompilation.
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/dex/class.c | 17 | ||||
-rw-r--r-- | src/format/dex/class.h | 3 | ||||
-rw-r--r-- | src/format/dex/method.c | 3 | ||||
-rw-r--r-- | src/format/dex/method.h | 2 | ||||
-rw-r--r-- | src/format/format.c | 4 | ||||
-rw-r--r-- | src/format/format.h | 2 |
6 files changed, 9 insertions, 22 deletions
diff --git a/src/format/dex/class.c b/src/format/dex/class.c index c0fde56..26907ed 100644 --- a/src/format/dex/class.c +++ b/src/format/dex/class.c @@ -509,7 +509,7 @@ const char *g_dex_class_get_source_file(const GDexClass *class, const GDexFormat * Remarques : - * * * ******************************************************************************/ - +#if 0 void g_dex_class_decompile(const GDexClass *class, GLangOutput *lang, GCodeBuffer *buffer, const GDexFormat *format) { @@ -571,17 +571,4 @@ GBufferLine *line, GLangOutput *output) } - - - - - - - - - - - - - - +#endif diff --git a/src/format/dex/class.h b/src/format/dex/class.h index 044ace6..46529c3 100644 --- a/src/format/dex/class.h +++ b/src/format/dex/class.h @@ -30,7 +30,6 @@ #include "dex.h" #include "method.h" -#include "../../decomp/output.h" @@ -79,7 +78,7 @@ GDexMethod *g_dex_class_find_method_by_address(const GDexClass *, vmpa_t); const char *g_dex_class_get_source_file(const GDexClass *, const GDexFormat *); /* Procède à la décompilation complète d'une classe donnée. */ -void g_dex_class_decompile(const GDexClass *, GLangOutput *, GCodeBuffer *, const GDexFormat *); +//void g_dex_class_decompile(const GDexClass *, GLangOutput *, GCodeBuffer *, const GDexFormat *); diff --git a/src/format/dex/method.c b/src/format/dex/method.c index 2083293..1223eb9 100644 --- a/src/format/dex/method.c +++ b/src/format/dex/method.c @@ -466,9 +466,10 @@ DexVariableIndex g_dex_method_get_variable(const GDexMethod *method, uint32_t in * Remarques : - * * * ******************************************************************************/ - +#if 0 void g_dex_method_decompile(const GDexMethod *method, GLangOutput *lang, GCodeBuffer *buffer) { g_binary_routine_print_code(method->routine, lang, buffer, true); } +#endif diff --git a/src/format/dex/method.h b/src/format/dex/method.h index bc07ab9..41ddb4c 100644 --- a/src/format/dex/method.h +++ b/src/format/dex/method.h @@ -91,7 +91,7 @@ bool g_dex_method_get_offset(const GDexMethod *method, phys_t *); DexVariableIndex g_dex_method_get_variable(const GDexMethod *, uint32_t); /* Procède à la décompilation complète d'une routine donnée. */ -void g_dex_method_decompile(const GDexMethod *, GLangOutput *, GCodeBuffer *); +//void g_dex_method_decompile(const GDexMethod *, GLangOutput *, GCodeBuffer *); diff --git a/src/format/format.c b/src/format/format.c index 771d46e..bf4a0e1 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -38,7 +38,6 @@ #include "pe/pe.h" #include "../arch/processor.h" #include "../common/sort.h" -#include "../decomp/expr/block.h" #include "../gui/panels/log.h" #include "../plugins/pglist.h" @@ -911,7 +910,7 @@ const char * const *g_binary_format_get_source_files(const GBinFormat *format, s * Remarques : - * * * ******************************************************************************/ - +#if 0 void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer, const char *filename) { @@ -951,3 +950,4 @@ void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer, co } } +#endif diff --git a/src/format/format.h b/src/format/format.h index 45a67eb..5298b5f 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -101,7 +101,7 @@ GBinRoutine **g_binary_format_get_routines(const GBinFormat *, size_t *); const char * const *g_binary_format_get_source_files(const GBinFormat *, size_t *, size_t *); /* Procède à la décompilation complète du format. */ -void g_binary_format_decompile(const GBinFormat *, GCodeBuffer *, const char *filename); +//void g_binary_format_decompile(const GBinFormat *, GCodeBuffer *, const char *filename); |