* minor comment clarification (cut and paste fix)
@ 2008-01-25 2:50 Michael Snyder
0 siblings, 0 replies; only message in thread
From: Michael Snyder @ 2008-01-25 2:50 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 93 bytes --]
Same like with corelow.c earlier... comment reflects the
read/write direction of the xfer.
[-- Attachment #2: readwrite.txt --]
[-- Type: text/plain, Size: 2185 bytes --]
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-25 0:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-25 2:50 minor comment clarification (cut and paste fix) Michael Snyder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox