summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/gdb')
-rw-r--r--gnu/usr.bin/binutils/gdb/inf-ptrace.c2
1 files changed, 1 insertions, 1 deletions
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;