Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@gnu.org>
To: gdb-patches@sources.redhat.com
Subject: [COMMIT] Fix procfs_xfer_partial
Date: Tue, 05 Oct 2004 12:43:00 -0000	[thread overview]
Message-ID: <200410051242.i95Cgqa3023532@juw15.nfra.nl> (raw)

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;
 


             reply	other threads:[~2004-10-05 12:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-05 12:43 Mark Kettenis [this message]
2004-10-05 13:18 ` Andrew Cagney
2004-10-08 19:25   ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410051242.i95Cgqa3023532@juw15.nfra.nl \
    --to=kettenis@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox