diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-03 18:15:46 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-03 18:15:46 (GMT) |
commit | 78da8b1ad594ca24292eb0f047698bc952b7b961 (patch) | |
tree | 1e461944f2a5d9f6b61eb6ca31048021580596cd /src | |
parent | 85ddac0558313b5d3fbd9428ae3e9614f16d514d (diff) |
Defined the missing features required to build operands from Python.
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/operands/immediate.c | 5 | ||||
-rw-r--r-- | src/arch/register.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/arch/operands/immediate.c b/src/arch/operands/immediate.c index e2cf5e6..769826b 100644 --- a/src/arch/operands/immediate.c +++ b/src/arch/operands/immediate.c @@ -1825,6 +1825,9 @@ static void g_known_imm_operand_renamed_interface_init(GRenamedOperandInterface static void g_known_imm_operand_dispose(GKnownImmOperand *operand) { + if (operand->alt_text != NULL) + free(operand->alt_text); + G_OBJECT_CLASS(g_known_imm_operand_parent_class)->dispose(G_OBJECT(operand)); } @@ -1881,6 +1884,8 @@ GArchOperand *g_known_imm_operand_new(const GImmOperand *old, const char *alt) g_bit_unlock(&src->lock, HOLE_LOCK_BIT); + result->alt_text = strdup(alt); + return G_ARCH_OPERAND(result); } diff --git a/src/arch/register.c b/src/arch/register.c index e08aa8b..0309c62 100644 --- a/src/arch/register.c +++ b/src/arch/register.c @@ -170,8 +170,8 @@ guint g_arch_register_hash(const GArchRegister *reg) /****************************************************************************** * * -* Paramètres : a = premier opérande à consulter. * -* b = second opérande à consulter. * +* Paramètres : a = premier registre à consulter. * +* b = second registre à consulter. * * * * Description : Compare un registre avec un autre. * * * |