This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] target.c: target_xfer_memory_partial() returns byte count
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] target.c: target_xfer_memory_partial() returns byte count
- From: Nick Duffek <nsd at redhat dot com>
- Date: Mon, 6 Nov 2000 23:57:46 -0500
It looks like target_xfer_memory_partial() got broken in a recent patch.
Okay to apply this fix?
ChangeLog:
* target.c (target_xfer_memory_partial): Return bytes transferred
instead of 0.
Nick Duffek
nsd@redhat.com
Index: gdb/target.c
===================================================================
diff -up gdb/target.c gdb/target.c
--- gdb/target.c Mon Nov 6 23:51:39 2000
+++ gdb/target.c Mon Nov 6 23:50:29 2000
@@ -964,11 +964,11 @@ target_xfer_memory_partial (CORE_ADDR me
else
*err = EIO;
- return -1;
+ return -1;
}
*err = 0;
- return 0;
+ return res;
}
int