diff options
Diffstat (limited to 'src/analysis/disass/instructions.c')
-rw-r--r-- | src/analysis/disass/instructions.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/analysis/disass/instructions.c b/src/analysis/disass/instructions.c index b88d69f..47633d0 100644 --- a/src/analysis/disass/instructions.c +++ b/src/analysis/disass/instructions.c @@ -39,6 +39,7 @@ struct _GInstructionsStudy GDelayedWork parent; /* A laisser en premier */ GArchProcessor *proc; /* Processeurs avec ses instr. */ + GProcContext *ctx; /* Suivi du désassemblage */ GBinFormat *format; /* Format binaire à manipuler */ ins_fallback_cb fallback; /* Routine de traitement finale*/ @@ -169,6 +170,7 @@ static void g_instructions_study_finalize(GInstructionsStudy *study) /****************************************************************************** * * * Paramètres : proc = ensemble d'instructions désassemblées. * +* ctx = contexte fourni pour suivre le désassemblage. * * format = accès aux données du binaire d'origine. * * begin = point de départ du parcours de liste. * * end = point d'arrivée exclu du parcours. * @@ -183,13 +185,14 @@ static void g_instructions_study_finalize(GInstructionsStudy *study) * * ******************************************************************************/ -GInstructionsStudy *g_instructions_study_new(GArchProcessor *proc, GBinFormat *format, size_t begin, size_t end, activity_id_t id, ins_fallback_cb fallback) +GInstructionsStudy *g_instructions_study_new(GArchProcessor *proc, GProcContext *ctx, GBinFormat *format, size_t begin, size_t end, activity_id_t id, ins_fallback_cb fallback) { GInstructionsStudy *result; /* Tâche à retourner */ result = g_object_new(G_TYPE_INSTRUCTIONS_STUDY, NULL); result->proc = proc; + result->ctx = ctx; result->format = format; result->fallback = fallback; @@ -250,7 +253,7 @@ void g_instructions_study_do_link_operation(GInstructionsStudy *study, size_t in instr = g_arch_processor_get_disassembled_instruction(study->proc, index); - g_arch_instruction_call_hook(instr, IPH_LINK, study->proc, NULL, study->format); + g_arch_instruction_call_hook(instr, IPH_LINK, study->proc, study->ctx, study->format); } @@ -274,7 +277,7 @@ void g_instructions_study_do_post_operation(GInstructionsStudy *study, size_t in instr = g_arch_processor_get_disassembled_instruction(study->proc, index); - g_arch_instruction_call_hook(instr, IPH_POST, study->proc, NULL, study->format); + g_arch_instruction_call_hook(instr, IPH_POST, study->proc, study->ctx, study->format); } |