diff options
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 0bcc739..08256d1 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -234,6 +234,7 @@ void g_arch_instruction_set_hook(GArchInstruction *instr, InstrProcessHook type, * * * Paramètres : instr = instruction quelconque à traiter. * * type = type de procédure à utiliser. * +* proc = représentation de l'architecture utilisée. * * context = contexte associé à la phase de désassemblage. * * format = accès aux données du binaire d'origine. * * * @@ -245,12 +246,15 @@ void g_arch_instruction_set_hook(GArchInstruction *instr, InstrProcessHook type, * * ******************************************************************************/ -void g_arch_instruction_call_hook(GArchInstruction *instr, InstrProcessHook type, GProcContext *context, GBinFormat *format) +void g_arch_instruction_call_hook(GArchInstruction *instr, InstrProcessHook type, GArchProcessor *proc, GProcContext *context, GBinFormat *format) { + if (instr->range.addr.virtual == 0x83c2) + printf(" [%u] HAS BRANCH ? %p\n", (unsigned int)type, instr->hooks[type]); + assert(type < IPH_COUNT); if (instr->hooks[type] != NULL) - instr->hooks[type](instr, context, format); + instr->hooks[type](instr, proc, context, format); } |