diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2009-06-16 22:46:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2009-06-16 22:46:35 (GMT) |
commit | 23c7cd436e2ec980a68e6d12a6d8a750e357763c (patch) | |
tree | 0c27434a3ab3946e9b4766ae8ebe28ab399d9d84 /src/arch/artificial.c | |
parent | df1f4c4e1a5bb929f4345b1273d16558c0ba77de (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/artificial.c')
-rw-r--r-- | src/arch/artificial.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/artificial.c b/src/arch/artificial.c index d718a8c..6783579 100644 --- a/src/arch/artificial.c +++ b/src/arch/artificial.c @@ -56,6 +56,10 @@ static void g_db_instruction_init(GDbInstruction *); /* Traduit une instruction en version humainement lisible. */ static const char *g_db_instruction_get_text(const GDbInstruction *, const exe_format *, AsmSyntax); +/* Informe sur une éventuelle référence à une autre instruction. */ +static InstructionLinkType g_db_instruction_get_link(const GDbInstruction *, vmpa_t *); + + /* ---------------------------------------------------------------------------------- */ /* INSTRUCTION INCONNUE / DONNEES */ @@ -103,6 +107,7 @@ static void g_db_instruction_init(GDbInstruction *instr) parent = G_ARCH_INSTRUCTION(instr); parent->get_text = (get_instruction_text_fc)g_db_instruction_get_text; + parent->get_link = (get_instruction_link_fc)g_db_instruction_get_link; } @@ -166,3 +171,23 @@ static const char *g_db_instruction_get_text(const GDbInstruction *instr, const return "db"; } + + +/****************************************************************************** +* * +* Paramètres : instr = instruction à consulter. * +* addr = eventuelle adresse associée à faire connaître. [OUT] * +* * +* Description : Informe sur une éventuelle référence à une autre instruction.* +* * +* Retour : Type de lien trouvé ou ILT_NONE si aucun. * +* * +* Remarques : - * +* * +******************************************************************************/ + +static InstructionLinkType g_db_instruction_get_link(const GDbInstruction *instr, vmpa_t *addr) +{ + return ILT_NONE; + +} |