* [COMMIT] Fix procfs_xfer_partial
@ 2004-10-05 12:43 Mark Kettenis
2004-10-05 13:18 ` Andrew Cagney
0 siblings, 1 reply; 3+ messages in thread
From: Mark Kettenis @ 2004-10-05 12:43 UTC (permalink / raw)
To: gdb-patches
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [COMMIT] Fix procfs_xfer_partial
2004-10-05 12:43 [COMMIT] Fix procfs_xfer_partial Mark Kettenis
@ 2004-10-05 13:18 ` Andrew Cagney
2004-10-08 19:25 ` Mark Kettenis
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2004-10-05 13:18 UTC (permalink / raw)
To: Mark Kettenis; +Cc: gdb-patches
> - return (*ops->to_xfer_memory) (offset, readbuf, len, 1/*write*/,
> + return (*ops->to_xfer_memory) (offset, writebuf, len, 1/*write*/,
> NULL, ops);
You'll need to cast away the constantness of writebuf. Something
detected with -Werror ;-)
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [COMMIT] Fix procfs_xfer_partial
2004-10-05 13:18 ` Andrew Cagney
@ 2004-10-08 19:25 ` Mark Kettenis
0 siblings, 0 replies; 3+ messages in thread
From: Mark Kettenis @ 2004-10-08 19:25 UTC (permalink / raw)
To: cagney; +Cc: gdb-patches
Date: Tue, 05 Oct 2004 09:18:27 -0400
From: Andrew Cagney <cagney@gnu.org>
> - return (*ops->to_xfer_memory) (offset, readbuf, len, 1/*write*/,
> + return (*ops->to_xfer_memory) (offset, writebuf, len, 1/*write*/,
> NULL, ops);
You'll need to cast away the constantness of writebuf. Something
detected with -Werror ;-)
Darn. Not with gcc-3.2.3. I'll try to fix this over the weekend
(I've been away from home for a few days).
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-08 19:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-05 12:43 [COMMIT] Fix procfs_xfer_partial Mark Kettenis
2004-10-05 13:18 ` Andrew Cagney
2004-10-08 19:25 ` Mark Kettenis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox