diff options
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/format/format.c b/src/format/format.c index 73e6794..b44d8ed 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -182,29 +182,22 @@ const bin_t *g_binary_format_get_content(const GBinFormat *format, off_t *length /****************************************************************************** * * * Paramètres : format = description de l'exécutable à consulter. * +* ctx = contexte de désassemblage à préparer. * * * * Description : Fournit un contexte initialisé pour un désassemblage. * * * -* Retour : Nouveau contexte pour désassemblage prêt à emploi. * +* Retour : - * * * * Remarques : - * * * ******************************************************************************/ -GProcContext *g_binary_format_get_disassembling_context(const GBinFormat *format) +void g_binary_format_setup_disassembling_context(const GBinFormat *format, GProcContext *ctx) { - GProcContext *result; /* Contexte à retourner */ - GArchProcessor *proc; /* Architecture du binaire */ size_t i; /* Boucle de parcours */ - proc = get_arch_processor_from_format(G_EXE_FORMAT(format)); - - result = g_arch_processor_get_context(proc); - for (i = 0; i < format->ep_count; i++) - g_proc_context_push_drop_point(result, format->entry_points[i]); - - return result; + g_proc_context_push_drop_point(ctx, format->entry_points[i]); } |