diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-18 21:30:14 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:17 +0200 |
commit | 5e40b11bf8657d033099c277723a0c7215b5e874 (patch) | |
tree | 1092af81dcec1ca71a5000ab3cf946e961e29546 | |
parent | bc8457b00c81ef45d7db23b85a0fc54c91f16ae0 (diff) |
2008-07-18 Andrei Barbu <andrei@0xab.com>
* i386/i386/db_interface.c (db_read_bytes): Do not increment the
address before printing it.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | i386/i386/db_interface.c | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -3,6 +3,8 @@ * i386/i386/db_disasm.c (Iba): New macro. (db_inst_table): Use Iba for aam and aad instructions. (db_disasm): Decode operands for Iba case. + * i386/i386/db_interface.c (db_read_bytes): Do not increment the + address before printing it. 2008-07-15 Barry deFreese <bddebian@comcast.net> diff --git a/i386/i386/db_interface.c b/i386/i386/db_interface.c index b8968de..bd43b1f 100644 --- a/i386/i386/db_interface.c +++ b/i386/i386/db_interface.c @@ -315,11 +315,12 @@ db_read_bytes( if (task == TASK_NULL) task = db_current_task(); while (--size >= 0) { - if (addr++ < VM_MIN_KERNEL_ADDRESS && task == TASK_NULL) { + if (addr < VM_MIN_KERNEL_ADDRESS && task == TASK_NULL) { db_printf("\nbad address %x\n", addr); db_error(0); /* NOTREACHED */ } + addr++; *data++ = *src++; } return; |