diff options
Diffstat (limited to 'src/format')
| -rw-r--r-- | src/format/format-int.h | 8 | ||||
| -rw-r--r-- | src/format/format.c | 80 | ||||
| -rw-r--r-- | src/format/format.h | 9 | 
3 files changed, 0 insertions, 97 deletions
| diff --git a/src/format/format-int.h b/src/format/format-int.h index 6c83590..6a3be81 100644 --- a/src/format/format-int.h +++ b/src/format/format-int.h @@ -52,9 +52,6 @@ typedef SourceEndian (* format_get_endian_fc) (const GBinFormat *);  /* Réalise un traitement post-désassemblage. */  typedef void (* format_complete_analysis_fc) (GBinFormat *, wgroup_id_t, GtkStatusStack *); -/* Procède à la décompilation complète du format. */ -typedef void (* format_decompile_fc) (const GBinFormat *, void/*GCodeBuffer*/ *, const char *); -  /* Rythme des allocations pour les entrées de code */  #define EXTRA_POINT_BLOCK 100 @@ -99,11 +96,6 @@ struct _GBinFormat      gint sym_locked;                        /* Statut d'accès à la liste   */  #endif -    const char **src_files;                 /* Nom des fichiers source     */ -    size_t src_count;                       /* Taille de la liste          */ -    size_t def_source;                      /* Fichier source principal    */ -    format_decompile_fc decompile;          /* Décompilation d'un fichier  */ -      fmt_error *errors;                      /* Liste d'erreurs rencontrées */      size_t error_count;                     /* Taille de cette liste       */      GMutex error_mutex;                     /* Verrou pour l'accès         */ diff --git a/src/format/format.c b/src/format/format.c index 18b3b07..ac6b215 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -1363,86 +1363,6 @@ bool g_binary_format_resolve_symbol(GBinFormat *format, const vmpa2t *addr, bool  } -/****************************************************************************** -*                                                                             * -*  Paramètres  : format = informations chargées à consulter.                  * -*                count  = taille de la liste retournée. [OUT]                 * -*                defsrc = fichier de code principal. [OUT]                    * -*                                                                             * -*  Description : Fournit la liste des fichiers source détectés.               * -*                                                                             * -*  Retour      : Liste de noms de fichier ou NULL si aucun.                   * -*                                                                             * -*  Remarques   : -                                                            * -*                                                                             * -******************************************************************************/ - -const char * const *g_binary_format_get_source_files(const GBinFormat *format, size_t *count, size_t *defsrc) -{ -    *count = format->src_count; -    *defsrc = format->def_source; - -    return format->src_files; - -} - - -/****************************************************************************** -*                                                                             * -*  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   : -                                                            * -*                                                                             * -******************************************************************************/ -#if 0 -void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer, const char *filename) -{ - - -    GBinRoutine **routines; -    size_t count; - -    size_t i; - -    GDecInstruction *instr; - -    if (format->decompile != NULL) -        format->decompile(format, buffer, filename); -     - -    routines = g_binary_format_get_routines(format, &count); - - - -    for (i = 0; i < count; i++) -    { -        //printf(" -- %s --\n", g_binary_routine_get_name(routines[i])); - -        //if (strcmp("cryptself", g_binary_routine_get_name(routines[i])) == 0) -        { -            instr = g_binary_routine_get_decomp_instructions(routines[i]); - -            if (instr == NULL) continue; - -            //g_dec_instruction_print(instr, buffer, NULL, g_java_output_new()); - - - -        } - - -    } - -} -#endif - -  /* ---------------------------------------------------------------------------------- */  /*                    CONSERVATION DES SOUCIS DURANT LE CHARGEMENT                    */ diff --git a/src/format/format.h b/src/format/format.h index a9152ba..748fd54 100644 --- a/src/format/format.h +++ b/src/format/format.h @@ -155,15 +155,6 @@ bool g_binary_format_resolve_symbol(GBinFormat *, const vmpa2t *, bool, GBinSymb - -/* Fournit la liste des fichiers source détectés. */ -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); - - -  /* ------------------ CONSERVATION DES SOUCIS DURANT LE CHARGEMENT ------------------ */ | 
