diff options
Diffstat (limited to 'src/arch/instruction.h')
-rw-r--r-- | src/arch/instruction.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/arch/instruction.h b/src/arch/instruction.h index 7932fdc..07a6054 100644 --- a/src/arch/instruction.h +++ b/src/arch/instruction.h @@ -70,7 +70,7 @@ GType g_arch_instruction_get_type(void); void g_arch_instruction_set_location(GArchInstruction *, off_t, off_t, vmpa_t); /* Fournit la localisation d'une instruction. */ -void g_arch_instruction_get_location(GArchInstruction *, off_t *, off_t *, vmpa_t *); +void g_arch_instruction_get_location(const GArchInstruction *, off_t *, off_t *, vmpa_t *); /* Attache un opérande supplémentaire à une instruction. */ void g_arch_instruction_attach_extra_operand(GArchInstruction *, GArchOperand *); @@ -88,7 +88,7 @@ void g_arch_instruction_replace_operand(GArchInstruction *, GArchOperand *, cons void g_arch_instruction_detach_operand(GArchInstruction *, GArchOperand *); /* Traduit une instruction en version humainement lisible. */ -char *g_arch_instruction_get_text(const GArchInstruction *, const GExeFormat *, AsmSyntax); +char *g_arch_instruction_get_text(const GArchInstruction *, const GExeFormat *, AsmSyntax) __attribute__ ((deprecated)); @@ -118,6 +118,9 @@ size_t g_arch_instruction_get_destinations(const GArchInstruction *, GArchInstru /* --------------------- CONVERSIONS DU FORMAT DES INSTRUCTIONS --------------------- */ +/* Ajoute à un tampon GLib le contenu de l'instance spécifiée. */ +void g_arch_instruction_print(const GArchInstruction *, GCodeBuffer *, MemoryDataSize, const bin_t *, AsmSyntax); + /* Décompile une instruction de façon générique. */ GDecInstruction *g_arch_instruction_decompile(const GArchInstruction *, GDecContext *); @@ -130,7 +133,7 @@ GDecInstruction *g_arch_instruction_decompile(const GArchInstruction *, GDecCont void g_arch_instruction_add_to_list(GArchInstruction **, GArchInstruction *); /* Fournit l'élement suivant un autre pour un parcours. */ -GArchInstruction *g_arch_instruction_get_next_iter(GArchInstruction *, const GArchInstruction *, vmpa_t); +GArchInstruction *g_arch_instruction_get_next_iter(const GArchInstruction *, const GArchInstruction *, vmpa_t); /* Recherche une instruction d'après son adresse. */ GArchInstruction *g_arch_instruction_find_by_address(GArchInstruction *, vmpa_t, bool); |