minor comment clarification (cut and paste fix)

Michael Snyder msnyder@specifix.com
Fri Jan 25 02:50:00 GMT 2008


Same like with corelow.c earlier... comment reflects the 
read/write direction of the xfer.

-------------- next part --------------
2008-01-24  Michael Snyder  <msnyder@specifix.com>

	* 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)


More information about the Gdb-patches mailing list