* corelow.c (core_xfer_partial): Pass writebuf to
authorPedro Alves <palves@redhat.com>
Mon, 3 Sep 2007 22:31:45 +0000 (22:31 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 3 Sep 2007 22:31:45 +0000 (22:31 +0000)
deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.

gdb/ChangeLog
gdb/corelow.c

index 1ca6d284695bfa1b4ceb0ea0022cb2a2561e0650..09923d52bc05968191c69920e575f26ff6f2937c 100644 (file)
@@ -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.
index 986064daa8f5e2be1374ebdb204660ca348a0aed..28b0a2261d565305a6054d0fe82148851c3262e8 100644 (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: