diff options
Diffstat (limited to 'plugins/dex/format.c')
-rw-r--r-- | plugins/dex/format.c | 118 |
1 files changed, 0 insertions, 118 deletions
diff --git a/plugins/dex/format.c b/plugins/dex/format.c index d354ad0..b657fe6 100644 --- a/plugins/dex/format.c +++ b/plugins/dex/format.c @@ -85,12 +85,6 @@ static bool g_dex_format_get_section_range_by_name(const GDexFormat *, const cha -/* Détermine tous les fichiers source indiqués. */ -//static void g_dex_format_find_all_sources(GDexFormat *); - -/* Procède à la décompilation complète du format. */ -static void g_dex_format_decompile(const GDexFormat *, void/*GCodeBuffer*/ *, const char *); - @@ -194,8 +188,6 @@ static void g_dex_format_init(GDexFormat *format) bin_format->demangler = get_compiler_demangler_for_type("dex"); assert(bin_format->demangler != NULL); - bin_format->decompile = (format_decompile_fc)g_dex_format_decompile; - } @@ -560,116 +552,6 @@ GDexMethod *g_dex_format_find_method_by_address(const GDexFormat *format, vmpa_t } -/****************************************************************************** -* * -* Paramètres : format = informations chargées à mettre à jour. * -* * -* Description : Détermine tous les fichiers source indiqués. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ -#if 0 -static void g_dex_format_find_all_sources(GDexFormat *format) -{ - -#if 0 - - GBinFormat *bf; /* Instance parente */ - size_t i; /* Boucle de parcours #1 */ - const char *source; /* Fichier source trouvé */ - bool found; /* Présence dans la liste */ - size_t k; /* Boucle de parcours #2 */ - - bf = G_BIN_FORMAT(format); - - for (i = 0; i < format->classes_count; i++) - { - source = g_dex_class_get_source_file(format->classes[i], format); - if (source == NULL) continue; - - found = false; - - for (k = 0; k < bf->src_count && !found; k++) - found = (strcmp(source, bf->src_files[k]) == 0); - - if (!found) - { - bf->src_files = (const char **)realloc(bf->src_files, - ++bf->src_count * sizeof(const char **)); - bf->src_files[bf->src_count - 1] = source; - } - - } - -#endif - -} -#endif - -/****************************************************************************** -* * -* Paramètres : format = informations chargées à consulter. * -* buffer = tampon mis à disposition pour la sortie. * -* filename = nom du fichier source à cibler. * -* * -* Description : Procède à la décompilation complète du format. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -static void g_dex_format_decompile(const GDexFormat *format, void/*GCodeBuffer*/ *buffer, const char *filename) -{ - -#if 0 - - GLangOutput *lang; /* Langage de sortie */ - size_t i; /* Boucle de parcours */ - const char *source; /* Fichier source trouvé */ - - lang = g_java_output_new(); - - for (i = 0; i < format->classes_count; i++) - { - source = g_dex_class_get_source_file(format->classes[i], format); - if (source == NULL || strcmp(source, filename) != 0) continue; - - g_dex_class_decompile(format->classes[i], lang, buffer, format); - - - -#if 0 - GDataType *get_type_from_dex_pool(const GDexFormat *format, uint16_t index) - - - Décrit le type fourni sous forme de caractères. * -* * -* Retour : Chaîne à libérer de la mémoire après usage. * -* * -* Remarques : - * -* * -******************************************************************************/ - -char *_g_data_type_to_string(const GDataType *type, bool simple) - -#endif - - } - - -#endif - -} - - - - - /****************************************************************************** |