aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2008-01-25 00:09:50 +0000
committerMichael Snyder <msnyder@vmware.com>2008-01-25 00:09:50 +0000
commit244e85c8dfd6144c3db4648dc9c9c5b569067d49 (patch)
tree4e5499b67ec33170b36b7fd43c61c06228826d07
parentd6e07b52b72e05236ef438f4ca6787858ffcc32c (diff)
downloadgdb-244e85c8dfd6144c3db4648dc9c9c5b569067d49.zip
gdb-244e85c8dfd6144c3db4648dc9c9c5b569067d49.tar.gz
gdb-244e85c8dfd6144c3db4648dc9c9c5b569067d49.tar.bz2
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/procfs.c2
-rw-r--r--gdb/target.c4
-rw-r--r--gdb/win32-nat.c2
-rw-r--r--gdb/windows-nat.c2
5 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e2c24d4..cabbc74 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 1c80e19..bde710a 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -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);
diff --git a/gdb/target.c b/gdb/target.c
index b7ead9e..87ddf24 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -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)
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 061430b..954a597 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -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);
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 061430b..954a597 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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);