From 244e85c8dfd6144c3db4648dc9c9c5b569067d49 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 25 Jan 2008 00:09:50 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 6 ++++++ gdb/procfs.c | 2 +- gdb/target.c | 4 ++-- gdb/win32-nat.c | 2 +- gdb/windows-nat.c | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e2c24d4b243..cabbc74ca73 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +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. + 2008-01-24 Pedro Alves * 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 1c80e19d2af..bde710a6806 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 b7ead9e28f6..87ddf249e0a 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 061430b74d0..954a5977819 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 061430b74d0..954a5977819 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); -- 2.30.2