summaryrefslogtreecommitdiff
path: root/src/arch/instruction-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-06-16 22:46:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-06-16 22:46:35 (GMT)
commit23c7cd436e2ec980a68e6d12a6d8a750e357763c (patch)
tree0c27434a3ab3946e9b4766ae8ebe28ab399d9d84 /src/arch/instruction-int.h
parentdf1f4c4e1a5bb929f4345b1273d16558c0ba77de (diff)
Made links between lines of code (x86 only).
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@79 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction-int.h')
-rw-r--r--src/arch/instruction-int.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/instruction-int.h b/src/arch/instruction-int.h
index f61485f..6ae0597 100644
--- a/src/arch/instruction-int.h
+++ b/src/arch/instruction-int.h
@@ -33,14 +33,15 @@
/* Traduit une instruction en version humainement lisible. */
typedef const char * (* get_instruction_text_fc) (const GArchInstruction *, const exe_format *, AsmSyntax);
+/* Informe sur une éventuelle référence à une autre instruction. */
+typedef InstructionLinkType (* get_instruction_link_fc) (const GArchInstruction *, vmpa_t *);
+
/* Définition générique d'une instruction d'architecture (instance) */
struct _GArchInstruction
{
GObject parent; /* A laisser en premier */
- ArchInstructionType type; /* Type d'instruction */
-
off_t offset; /* Position physique de départ */
off_t length; /* Taille de l'instruction */
@@ -50,6 +51,7 @@ struct _GArchInstruction
size_t operands_count; /* Nbre. d'opérandes utilisées */
get_instruction_text_fc get_text; /* Texte humain équivalent */
+ get_instruction_link_fc get_link; /* Référence à une instruction */
};