diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-02-09 20:15:52 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-02-09 20:15:52 (GMT) |
commit | 8d326041a0379b87e54be44506d544367567e89b (patch) | |
tree | a3c3555c27c30858155fbee4df0ca236f33774f8 /src/format/format.c | |
parent | b70f428256963385a140e9eb503624106df5aa9b (diff) |
Registered all the supported processors in the system code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@467 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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]); } |