summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-18 21:30:14 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:17 +0200
commit5e40b11bf8657d033099c277723a0c7215b5e874 (patch)
tree1092af81dcec1ca71a5000ab3cf946e961e29546
parentbc8457b00c81ef45d7db23b85a0fc54c91f16ae0 (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--ChangeLog2
-rw-r--r--i386/i386/db_interface.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f17165f..2b4e1bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;