From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27133 invoked by alias); 25 Jan 2008 00:11:50 -0000 Received: (qmail 27119 invoked by uid 22791); 25 Jan 2008 00:11:50 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Jan 2008 00:11:31 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 8F1E93C960 for ; Thu, 24 Jan 2008 16:11:29 -0800 (PST) Subject: minor comment clarification (cut and paste fix) From: Michael Snyder To: gdb-patches@sourceware.org Content-Type: multipart/mixed; boundary="=-RzUXSIl5e0BvUaQi4isQ" Date: Fri, 25 Jan 2008 02:50:00 -0000 Message-Id: <1201219889.3263.183.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00599.txt.bz2 --=-RzUXSIl5e0BvUaQi4isQ Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 93 Same like with corelow.c earlier... comment reflects the read/write direction of the xfer. --=-RzUXSIl5e0BvUaQi4isQ Content-Disposition: attachment; filename=readwrite.txt Content-Type: text/plain; name=readwrite.txt; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2185 2008-01-24 Michael Snyder * procfs.c (procfs_xfer_partial): Comment, cut/paste error. * win32-nat.c (win32_xfer_partial): Ditto. * target.c (default_xfer_partial): Minor whitespace adjustment. Index: procfs.c =================================================================== RCS file: /cvs/src/src/gdb/procfs.c,v retrieving revision 1.84 diff -u -p -r1.84 procfs.c --- procfs.c 23 Jan 2008 11:26:28 -0000 1.84 +++ procfs.c 25 Jan 2008 00:06:56 -0000 @@ -4322,7 +4322,7 @@ procfs_xfer_partial (struct target_ops * case TARGET_OBJECT_MEMORY: if (readbuf) return (*ops->deprecated_xfer_memory) (offset, readbuf, len, - 0/*write*/, NULL, ops); + 0/*read*/, NULL, ops); if (writebuf) return (*ops->deprecated_xfer_memory) (offset, writebuf, len, 1/*write*/, NULL, ops); Index: win32-nat.c =================================================================== RCS file: /cvs/src/src/gdb/win32-nat.c,v retrieving revision 1.148 diff -u -p -r1.148 win32-nat.c --- win32-nat.c 23 Jan 2008 11:26:28 -0000 1.148 +++ win32-nat.c 25 Jan 2008 00:06:57 -0000 @@ -2037,7 +2037,7 @@ win32_xfer_partial (struct target_ops *o case TARGET_OBJECT_MEMORY: if (readbuf) return (*ops->deprecated_xfer_memory) (offset, readbuf, - len, 0/*write*/, NULL, ops); + len, 0/*read*/, NULL, ops); if (writebuf) return (*ops->deprecated_xfer_memory) (offset, (gdb_byte *) writebuf, len, 1/*write*/, NULL, ops); Index: target.c =================================================================== RCS file: /cvs/src/src/gdb/target.c,v retrieving revision 1.153 diff -u -p -r1.153 target.c --- target.c 11 Jan 2008 00:12:43 -0000 1.153 +++ target.c 25 Jan 2008 00:06:58 -0000 @@ -1330,8 +1330,8 @@ default_xfer_partial (struct target_ops do_cleanups (cleanup); } if (readbuf != NULL) - xfered = ops->deprecated_xfer_memory (offset, readbuf, len, 0/*read*/, - NULL, ops); + xfered = ops->deprecated_xfer_memory (offset, readbuf, len, + 0/*read*/, NULL, ops); if (xfered > 0) return xfered; else if (xfered == 0 && errno == 0) --=-RzUXSIl5e0BvUaQi4isQ--