diff options
Diffstat (limited to 'src/arch/instruction.h')
-rw-r--r-- | src/arch/instruction.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/arch/instruction.h b/src/arch/instruction.h index a9e2bd2..4dcba44 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -32,6 +32,8 @@ #include "archbase.h" #include "operand.h" +#include "../decomp/context.h" +#include "../decomp/instruction.h" #include "../format/executable.h" @@ -77,7 +79,7 @@ void g_arch_instruction_attach_extra_operand(GArchInstruction *, GArchOperand *) size_t g_arch_instruction_count_operands(const GArchInstruction *); /* Fournit un opérande donné d'une instruction. */ -const GArchOperand *g_arch_instruction_get_operand(GArchInstruction *, size_t); +GArchOperand *g_arch_instruction_get_operand(const GArchInstruction *, size_t); /* Remplace un opérande d'une instruction par un autre. */ void g_arch_instruction_replace_operand(GArchInstruction *, GArchOperand *, const GArchOperand *); @@ -94,6 +96,9 @@ InstructionLinkType g_arch_instruction_get_link(const GArchInstruction *, vmpa_t /* Indique si l'instruction correspond à un retour de fonction. */ bool g_arch_instruction_is_return(const GArchInstruction *instr); +/* Décompile une instruction de façon générique. */ +GDecInstruction *g_arch_instruction_decompile(const GArchInstruction *, GDecContext *); + /* -------------------- TRAITEMENT DES INSTRUCTIONS PAR ENSEMBLE -------------------- */ |