aboutsummaryrefslogtreecommitdiff
path: root/gdb/corelow.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2007-09-03 22:31:45 +0000
committerPedro Alves <palves@redhat.com>2007-09-03 22:31:45 +0000
commit7160c4c357f1e15085c0cd6c9d56b5035f356f6e (patch)
treefa5e819168dd8c9c3f5743a4a341f86900fec5b8 /gdb/corelow.c
parent6dc134122f43d3607284c0e372e239321b4ab7fb (diff)
downloadfsf-binutils-gdb-7160c4c357f1e15085c0cd6c9d56b5035f356f6e.zip
fsf-binutils-gdb-7160c4c357f1e15085c0cd6c9d56b5035f356f6e.tar.gz
fsf-binutils-gdb-7160c4c357f1e15085c0cd6c9d56b5035f356f6e.tar.bz2
* corelow.c (core_xfer_partial): Pass writebuf to
deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r--gdb/corelow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c
index 986064d..28b0a22 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: