* spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 8 Mar 2007 23:54:24 +0000 (23:54 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Thu, 8 Mar 2007 23:54:24 +0000 (23:54 +0000)
object types, not 0.

gdb/ChangeLog
gdb/spu-linux-nat.c

index 86cfe54..2624660 100644 (file)
@@ -1,5 +1,10 @@
 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
 
+       * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
+       object types, not 0.
+
+2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
+
        * spu-tdep.c (spu_frame_align): New function.
        (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
 
index 8d49baf..7f71b58 100644 (file)
@@ -536,7 +536,7 @@ spu_xfer_partial (struct target_ops *ops,
       return spu_proc_xfer_spu (mem_annex, readbuf, writebuf, offset, len);
     }
 
-  return 0;
+  return -1;
 }
 
 /* Override the to_can_use_hw_breakpoint routine.  */