aboutsummaryrefslogtreecommitdiff
path: root/gdb/procfs.c
diff options
context:
space:
mode:
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 1c80e19..bde710a 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -4322,7 +4322,7 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object,
case TARGET_OBJECT_MEMORY:
if (readbuf)
return (*ops->deprecated_xfer_memory) (offset, readbuf, len,
- 0/*write*/, NULL, ops);
+ 0/*read*/, NULL, ops);
if (writebuf)
return (*ops->deprecated_xfer_memory) (offset, writebuf, len,
1/*write*/, NULL, ops);