From 8056807369571b593b25fad926daa6a447d757fa Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sat, 1 Nov 2014 20:54:45 +0000 Subject: Fixed a bug and displayed the binary code again. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@418 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 6 ++++++ src/arch/instruction.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a9b9127..d322429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 14-11-01 Cyrille Bagard + * src/arch/instruction.c: + Fix a bug and display the binary code again: trust only values from + the memory range of each instruction. + +14-11-01 Cyrille Bagard + * src/glibext/gbufferline.c: * src/glibext/gbufferline.h: * src/glibext/gbuffersegment.c: diff --git a/src/arch/instruction.c b/src/arch/instruction.c index 8312bf6..f649150 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -690,7 +690,8 @@ static GBufferLine *_g_arch_instruction_print(const GArchInstruction *instr, GCo result = g_code_buffer_append_new_line(buffer, &instr->range); - g_buffer_line_fill_for_instr(result, msize/* TODO ! */, msize, content, instr->length, true); + g_buffer_line_fill_for_instr(result, msize/* TODO ! */, msize, + content, get_mrange_length(&instr->range), true); /* Instruction proprement dite */ -- cgit v0.11.2-87-g4458