summaryrefslogtreecommitdiff
path: root/src/arch/artificial.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2011-10-12 13:31:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2011-10-12 13:31:00 (GMT)
commit044b4d6d7ba4de50cd4d05b92621900e929e2231 (patch)
tree70167cbd5c90d0f8b2fc967add38272d21de1e4f /src/arch/artificial.c
parente8d2795d9ec2c8845641863fc42ce39f9e92906b (diff)
Processed skipped instructions and used contexts.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@212 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/artificial.c')
-rw-r--r--src/arch/artificial.c46
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