summaryrefslogtreecommitdiff
path: root/src/arch/processor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-11-10 01:28:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-11-10 01:28:23 (GMT)
commit12b4201890b4b2eefffaa6615b4b3076253dff6f (patch)
tree3756393810dc392658de2e05fc2589cbd119b2a8 /src/arch/processor.c
parent7c7109c1a8aaedea40af4b96d4b81d6ba4496226 (diff)
Shown/hidden virtual addresses / binary code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@41 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor.c')
-rw-r--r--src/arch/processor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/processor.c b/src/arch/processor.c
index 17f88b3..71cdfba 100644
--- a/src/arch/processor.c
+++ b/src/arch/processor.c
@@ -52,7 +52,7 @@
* *
******************************************************************************/
-asm_instr *decode_instruction(const asm_processor *proc, const uint8_t *data, off_t *pos, off_t len, uint64_t offset)
+asm_instr *decode_instruction(const asm_processor *proc, const uint8_t *data, off_t *pos, off_t len, off_t off, uint64_t offset)
{
asm_instr *result; /* Représentation à renvoyer */
@@ -79,6 +79,8 @@ asm_instr *decode_instruction(const asm_processor *proc, const uint8_t *data, of
result->vaddress = offset;
+ result->offset = off + old_pos;
+ result->length = *pos - old_pos;
return result;