From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21014 invoked by alias); 5 Oct 2004 12:43:30 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 20617 invoked from network); 5 Oct 2004 12:43:10 -0000 Received: from unknown (HELO server7.nfra.nl) (192.87.1.57) by sourceware.org with SMTP; 5 Oct 2004 12:43:10 -0000 Received: from juw15.nfra.nl [10.87.8.15] by server7.nfra.nl; Tue, 05 Oct 2004 14:42:59 +0200 Received: from juw15.nfra.nl (localhost [127.0.0.1]) by juw15.nfra.nl (8.12.2+Sun/8.11.1) with ESMTP id i95CgrCu023535 for ; Tue, 5 Oct 2004 14:42:53 +0200 (CEST) Received: (from kettenis@localhost) by juw15.nfra.nl (8.12.2+Sun/8.12.2/Submit) id i95Cgqa3023532; Tue, 5 Oct 2004 14:42:52 +0200 (CEST) Date: Tue, 05 Oct 2004 12:43:00 -0000 Message-Id: <200410051242.i95Cgqa3023532@juw15.nfra.nl> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [COMMIT] Fix procfs_xfer_partial X-SW-Source: 2004-10/txt/msg00080.txt.bz2 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 + + * 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. 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;