summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2005-07-26 09:44:39 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2005-07-26 09:44:39 +0000
commit58de3cc99b0d470c1a4b6c1f5b7f0890b6f2ca64 (patch)
tree58d7b8b45c8662a00a56c7122f94a317b6e505ee /gnu/usr.bin/binutils/gdb
parent5a9c3a8dfea1c875e3b68be33243acc63e39dbd4 (diff)
Read/write from/to I-space instead of D-space.
suggested by art@
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;