From 58de3cc99b0d470c1a4b6c1f5b7f0890b6f2ca64 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 26 Jul 2005 09:44:39 +0000 Subject: Read/write from/to I-space instead of D-space. suggested by art@ --- gnu/usr.bin/binutils/gdb/inf-ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/usr.bin/binutils/gdb/inf-ptrace.c b/gnu/usr.bin/binutils/gdb/inf-ptrace.c index 283a22dc4c8..74faf5788b6 100644 --- a/gnu/usr.bin/binutils/gdb/inf-ptrace.c +++ b/gnu/usr.bin/binutils/gdb/inf-ptrace.c @@ -489,7 +489,7 @@ inf_ptrace_xfer_partial (struct target_ops *ops, enum target_object object, /* NOTE: We assume that there are no distinct address spaces for instruction and data. */ - piod.piod_op = writebuf ? PIOD_WRITE_D : PIOD_READ_D; + piod.piod_op = writebuf ? PIOD_WRITE_I : PIOD_READ_I; piod.piod_addr = writebuf ? (void *) writebuf : readbuf; piod.piod_offs = (void *) (long) offset; piod.piod_len = len; -- cgit v1.2.3