summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-04-20 12:13:33 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-04-20 12:13:39 (GMT)
commit7e945d90b17b58832f561cce8ce778abcd4a360f (patch)
treed8e121d1d056eb7f666d6d3a38c4b3b3d2be6332
parent14d17285cdfae2fe6bd7df0e873ef11ef876e12c (diff)
Counted available references between instructions.
-rw-r--r--plugins/pychrysalide/arch/instruction.c1
-rw-r--r--src/arch/instruction.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/pychrysalide/arch/instruction.c b/plugins/pychrysalide/arch/instruction.c
index fb2df5b..1be3edb 100644
--- a/plugins/pychrysalide/arch/instruction.c
+++ b/plugins/pychrysalide/arch/instruction.c
@@ -864,6 +864,7 @@ static bool py_arch_instruction_define_constants(PyTypeObject *obj_type)
result &= PyDict_AddULongMacro(obj_type, ILT_CALL);
result &= PyDict_AddULongMacro(obj_type, ILT_CATCH_EXCEPTION);
result &= PyDict_AddULongMacro(obj_type, ILT_REF);
+ result &= PyDict_AddULongMacro(obj_type, ILT_COUNT);
return result;
diff --git a/src/arch/instruction.h b/src/arch/instruction.h
index 217e38b..cf9189b 100644
--- a/src/arch/instruction.h
+++ b/src/arch/instruction.h
@@ -206,7 +206,9 @@ typedef enum _InstructionLinkType
ILT_LOOP, /* Retour en arrière (boucle) */
ILT_CALL, /* Appel d'une fonction */
ILT_CATCH_EXCEPTION, /* Gestion d'une exception */
- ILT_REF /* Simple référence croisée */
+ ILT_REF, /* Simple référence croisée */
+
+ ILT_COUNT
} InstructionLinkType;