* corelow.c (core_xfer_partial): Pass writebuf to

deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
This commit is contained in:
Pedro Alves
2007-09-03 22:31:45 +00:00
parent 6dc134122f
commit 7160c4c357
2 changed files with 9 additions and 4 deletions

View File

@ -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: