From: Pedro Alves Date: Mon, 3 Sep 2007 22:31:45 +0000 (+0000) Subject: * corelow.c (core_xfer_partial): Pass writebuf to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7160c4c357f1e15085c0cd6c9d56b5035f356f6e;p=binutils-gdb.git * corelow.c (core_xfer_partial): Pass writebuf to deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ca6d284695..09923d52bc0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-09-03 Daniel Jacobowitz + + * corelow.c (core_xfer_partial): Pass writebuf to + deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case. + 2007-09-03 Pedro Alves * arm-tdep.h (arm_skip_stub): Declare. diff --git a/gdb/corelow.c b/gdb/corelow.c index 986064daa8f..28b0a2261d5 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -521,11 +521,11 @@ core_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); + return (*ops->deprecated_xfer_memory) (offset, readbuf, + len, 0/*write*/, NULL, ops); if (writebuf) - return (*ops->deprecated_xfer_memory) (offset, readbuf, len, - 1/*write*/, NULL, ops); + return (*ops->deprecated_xfer_memory) (offset, (gdb_byte *) writebuf, + len, 1/*write*/, NULL, ops); return -1; case TARGET_OBJECT_AUXV: