summaryrefslogtreecommitdiff
path: root/plugins/pychrysalide/arch/module.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-16 17:53:37 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-16 17:53:37 (GMT)
commit3a4a977678848d7284df585480e4056d5553a4f2 (patch)
treeb9bbe22d6a6d002c57f4d0552bf66fad4de8069a /plugins/pychrysalide/arch/module.c
parent69806d75d7a3d7c0501d8205cd561447b52ac0b2 (diff)
Dealt with registers and register operands in the Python bindings.
Diffstat (limited to 'plugins/pychrysalide/arch/module.c')
-rw-r--r--plugins/pychrysalide/arch/module.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/pychrysalide/arch/module.c b/plugins/pychrysalide/arch/module.c
index 40b8d71..d412ddc 100644
--- a/plugins/pychrysalide/arch/module.c
+++ b/plugins/pychrysalide/arch/module.c
@@ -40,8 +40,10 @@
#include "operand.h"
#include "processor.h"
#include "raw.h"
+#include "register.h"
#include "targetableop.h"
#include "vmpa.h"
+#include "operands/module.h"
#include "../helpers.h"
@@ -139,6 +141,8 @@ bool add_arch_module(PyObject *super)
result = (module != NULL);
+ if (result) result = add_arch_operands_module(module);
+
if (result) result = py_base_define_constants(Py_TYPE(module));
return result;
@@ -172,10 +176,13 @@ bool populate_arch_module(void)
if (result) result = ensure_python_arch_operand_is_registered();
if (result) result = ensure_python_arch_processor_is_registered();
if (result) result = ensure_python_raw_instruction_is_registered();
+ if (result) result = ensure_python_arch_register_is_registered();
if (result) result = ensure_python_targetable_operand_is_registered();
if (result) result = ensure_python_vmpa_is_registered();
if (result) result = ensure_python_mrange_is_registered();
+ if (result) result = populate_arch_operands_module();
+
assert(result);
return result;