diff options
author | Pedro Alves <palves@redhat.com> | 2007-09-03 22:31:45 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-09-03 22:31:45 +0000 |
commit | 7160c4c357f1e15085c0cd6c9d56b5035f356f6e (patch) | |
tree | fa5e819168dd8c9c3f5743a4a341f86900fec5b8 /gdb | |
parent | 6dc134122f43d3607284c0e372e239321b4ab7fb (diff) | |
download | gdb-7160c4c357f1e15085c0cd6c9d56b5035f356f6e.zip gdb-7160c4c357f1e15085c0cd6c9d56b5035f356f6e.tar.gz 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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/corelow.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ca6d28..09923d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-09-03 Daniel Jacobowitz <dan@codesourcery.com> + + * corelow.c (core_xfer_partial): Pass writebuf to + deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case. + 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> * arm-tdep.h (arm_skip_stub): Declare. 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: |