summaryrefslogtreecommitdiff
path: root/src/arch/undefined-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-31 07:44:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-31 07:44:01 (GMT)
commit8f557031ec362c4b2e85724f6bc392086cefadea (patch)
tree29aef9683e67548174a4da7bcb6373b0c0602d66 /src/arch/undefined-int.h
parente873101ef61b19ddf7bf1ef9230143d0735c0fd8 (diff)
Created Python bindings for undefined instructions.
Diffstat (limited to 'src/arch/undefined-int.h')
-rw-r--r--src/arch/undefined-int.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/arch/undefined-int.h b/src/arch/undefined-int.h
new file mode 100644
index 0000000..2f01c4a
--- /dev/null
+++ b/src/arch/undefined-int.h
@@ -0,0 +1,51 @@
+
+/* Chrysalide - Outil d'analyse de fichiers binaires
+ * undefined-int.h - prototypes pour la définition générique interne des instructions au comportement non défini
+ *
+ * Copyright (C) 2018 Cyrille Bagard
+ *
+ * This file is part of Chrysalide.
+ *
+ * Chrysalide is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Chrysalide is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Chrysalide. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef _ARCH_UNDEFINED_INT_H
+#define _ARCH_UNDEFINED_INT_H
+
+
+#include "undefined.h"
+#include "instruction-int.h"
+
+
+
+/* Définition générique d'une instruction au comportement non défini (instance) */
+struct _GUndefInstruction
+{
+ GArchInstruction parent; /* A laisser en premier */
+
+ InstrBehaviorStatus status; /* Conséquences réelles */
+
+};
+
+/* Définition générique d'une instruction au comportement non défini (classe) */
+struct _GUndefInstructionClass
+{
+ GArchInstructionClass parent; /* A laisser en premier */
+
+};
+
+
+
+#endif /* _ARCH_UNDEFINED_INT_H */