diff options
-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; |