This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Fix procfs_xfer_partial
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 5 Oct 2004 14:42:52 +0200 (CEST)
- Subject: [COMMIT] Fix procfs_xfer_partial
Now where did we see this bug before...
Anyway, now sparc-sun-solaris2.9 works again.
Mark
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.6440
diff -u -p -r1.6440 ChangeLog
--- ChangeLog 5 Oct 2004 04:07:03 -0000 1.6440
+++ ChangeLog 5 Oct 2004 11:21:01 -0000
@@ -1,3 +1,8 @@
+2004-10-05 Mark Kettenis <kettenis@jive.nl>
+
+ * procfs.c (procfs_xfer_partial): Use WRITEBUF instead of READBUF
+ when writing to memory.
+
2004-10-05 Kei Sakamoto <sakamoto.kei@renesas.com>
* m32r-tdep.c (m32r_use_struct_convention): Delete function.
Index: procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/procfs.c,v
retrieving revision 1.58
diff -u -p -r1.58 procfs.c
--- procfs.c 27 Aug 2004 13:37:42 -0000 1.58
+++ procfs.c 5 Oct 2004 11:21:01 -0000
@@ -4329,7 +4329,7 @@ procfs_xfer_partial (struct target_ops *
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;