From 5d33469143778e8ab22b362b7a647f53cd6fc840 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 4 Oct 2009 13:46:07 +0000 Subject: Fixed the rendering of ModRM operands. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@125 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/arch/x86/operand.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 28d1fdf..a241f3f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,11 @@ 09-10-04 Cyrille Bagard * src/arch/x86/operand.c: + Fix the rendering of ModRM operands. + +09-10-04 Cyrille Bagard + + * src/arch/x86/operand.c: Fix a bug in relative jump operands. 09-10-04 Cyrille Bagard diff --git a/src/arch/x86/operand.c b/src/arch/x86/operand.c index 2c27176..eb6f5f3 100644 --- a/src/arch/x86/operand.c +++ b/src/arch/x86/operand.c @@ -623,9 +623,15 @@ static void g_x86_mod_rm_operand_add_to_gtk_buffer(const GX86ModRMOperand *opera format, syntax, buffer, iter); if (operand->base != NULL) + { + g_content_exporter_insert_with_gtk_tag(G_CONTENT_EXPORTER(operand), buffer, iter, + "+", 1, RTT_SIGNS); + g_content_exporter_add_arch_to_gtk_buffer(G_CONTENT_EXPORTER(operand->base), format, syntax, buffer, iter); + } + if (operand->displacement != NULL) { if (g_imm_operand_is_negative(operand->displacement)) -- cgit v0.11.2-87-g4458