summaryrefslogtreecommitdiff
path: root/i386
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 /i386
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.
Diffstat (limited to 'i386')
-rw-r--r--i386/i386/db_interface.c3
1 files changed, 2 insertions, 1 deletions
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;