diff options
Diffstat (limited to 'src/arch/artificial.c')
-rw-r--r-- | src/arch/artificial.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/arch/artificial.c b/src/arch/artificial.c index 7556d0a..4ffcbe3 100644 --- a/src/arch/artificial.c +++ b/src/arch/artificial.c @@ -37,6 +37,10 @@ struct _GDbInstruction { GArchInstruction parent; /* A laisser en premier */ +#ifdef DEBUG + bool skipped; /* Donnée traitée */ +#endif + }; /* Définition générique d'une instruction d'architecture inconnue (classe) */ @@ -217,3 +221,45 @@ static bool g_db_instruction_is_return(const GDbInstruction *instr) return false; } + + +#ifdef DEBUG + +/****************************************************************************** +* * +* Paramètres : instr = instruction à mettre à jour. * +* * +* Description : Marque une donnée comme ayant été considérée au sein du code.* +* * +* Retour : - * +* * +* Remarques : - * +* * +******************************************************************************/ + +void g_db_instruction_mark_as_skipped(GDbInstruction *instr) +{ + instr->skipped = true; + +} + + +/****************************************************************************** +* * +* Paramètres : instr = instruction à consulter. * +* * +* Description : Indique si une donnée fait partie du code exécutable. * +* * +* Retour : true si la donnée est intégrée dans le code, false sinon. * +* * +* Remarques : - * +* * +******************************************************************************/ + +bool g_db_instruction_is_skipped(const GDbInstruction *instr) +{ + return instr->skipped; + +} + +#endif |