aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-10-05 11:24:21 +0000
committerMark Kettenis <kettenis@gnu.org>2004-10-05 11:24:21 +0000
commit998bdd68ffaf1f33951076fbf60a14121708507b (patch)
tree71041d17b5162a5b501716b125d253d6aa091f31 /gdb/procfs.c
parent7785be14ef74ad52d2be14c2ba607d5fa64dd68f (diff)
downloadfsf-binutils-gdb-998bdd68ffaf1f33951076fbf60a14121708507b.zip
fsf-binutils-gdb-998bdd68ffaf1f33951076fbf60a14121708507b.tar.gz
fsf-binutils-gdb-998bdd68ffaf1f33951076fbf60a14121708507b.tar.bz2
* procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
when writing to memory.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r--gdb/procfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 0a1f152..467135b 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -4329,7 +4329,7 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object,
return (*ops->to_xfer_memory) (offset, readbuf, len, 0/*write*/,
NULL, ops);
if (writebuf)
- return (*ops->to_xfer_memory) (offset, readbuf, len, 1/*write*/,
+ return (*ops->to_xfer_memory) (offset, writebuf, len, 1/*write*/,
NULL, ops);
return -1;