summaryrefslogtreecommitdiff
path: root/src/arch/artificial.h
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.h
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.h')
-rw-r--r--src/arch/artificial.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/arch/artificial.h b/src/arch/artificial.h
index 3e98595..f4a661d 100644
--- a/src/arch/artificial.h
+++ b/src/arch/artificial.h
@@ -37,9 +37,9 @@
#define G_TYPE_DB_INSTRUCTION g_db_instruction_get_type()
-#define G_DB_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_db_instruction_get_type(), GArchOperand))
+#define G_DB_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_db_instruction_get_type(), GDbInstruction))
#define G_IS_DB_INSTRUCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_db_instruction_get_type()))
-#define G_DB_INSTRUCTION_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_db_instruction_get_type(), GArchOperandIface))
+#define G_DB_INSTRUCTION_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_db_instruction_get_type(), GDbInstructionIface))
/* Définition générique d'une instruction d'architecture inconnue (instance) */
@@ -55,6 +55,16 @@ GType g_db_instruction_get_type(void);
/* Crée une instruction de type 'db' à partir de données. */
GArchInstruction *g_db_instruction_new_from_data(const bin_t *, off_t *, off_t, vmpa_t, const GArchProcessor *);
+#ifdef DEBUG
+
+/* Marque une donnée comme ayant été considérée au sein du code. */
+void g_db_instruction_mark_as_skipped(GDbInstruction *);
+
+/* Indique si une donnée fait partie du code exécutable. */
+bool g_db_instruction_is_skipped(const GDbInstruction *);
+
+#endif
+
#endif /* _ARCH_ARTIFICIAL_H */