From 998bdd68ffaf1f33951076fbf60a14121708507b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 5 Oct 2004 11:24:21 +0000 Subject: [PATCH] * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF when writing to memory. --- gdb/ChangeLog | 5 +++++ gdb/procfs.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e63108991a7..c48e3d05fe1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-10-05 Mark Kettenis + + * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF + when writing to memory. + 2004-10-05 Kei Sakamoto * m32r-tdep.c (m32r_use_struct_convention): Delete function. diff --git a/gdb/procfs.c b/gdb/procfs.c index 0a1f1528b3a..467135b4054 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; -- 2.30.2