2008-01-24 Michael Snyder <msnyder@specifix.com>
authorMichael Snyder <msnyder@vmware.com>
Fri, 25 Jan 2008 00:09:50 +0000 (00:09 +0000)
committerMichael Snyder <msnyder@vmware.com>
Fri, 25 Jan 2008 00:09:50 +0000 (00:09 +0000)
* procfs.c (procfs_xfer_partial): Comment, cut/paste error.
* win32-nat.c (win32_xfer_partial): Ditto.
* target.c (default_xfer_partial): Minor whitespace adjustment.

gdb/ChangeLog
gdb/procfs.c
gdb/target.c
gdb/win32-nat.c
gdb/windows-nat.c

index e2c24d4b243b650030d5cad5abcb4631a6aa8f1d..cabbc74ca73763db6aafb69c905e8fb1492ce98e 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2008-01-24  Pedro Alves  <pedro@codesourcery.com>
 
        * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
index 1c80e19d2af244ac5b44a1d7fc9cae656837c4fc..bde710a68069bc1f2eec714108065e4236483728 100644 (file)
@@ -4322,7 +4322,7 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object,
     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 b7ead9e28f6dcb0298813deea432ba9b771ec35f..87ddf249e0a8eeff0ce2c373083fa5538df15467 100644 (file)
@@ -1330,8 +1330,8 @@ default_xfer_partial (struct target_ops *ops, enum target_object object,
          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)
index 061430b74d012f26ea555361a298eb712a0983bb..954a59778195e878bb64336dcd90a97a19a36248 100644 (file)
@@ -2037,7 +2037,7 @@ win32_xfer_partial (struct target_ops *ops, enum target_object object,
     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 061430b74d012f26ea555361a298eb712a0983bb..954a59778195e878bb64336dcd90a97a19a36248 100644 (file)
@@ -2037,7 +2037,7 @@ win32_xfer_partial (struct target_ops *ops, enum target_object object,
     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);