]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ChangeLog:
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Jun 2007 14:31:26 +0000 (14:31 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Tue, 12 Jun 2007 14:31:26 +0000 (14:31 +0000)
* spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
accessing non-seekable spufs files.

gdbserver/ChangeLog:

* spu-low.c (spu_proc_xfer_spu): Do not return failure when
accessing non-seekable spufs files.

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

index 7d40213421cfab8a2f01a3e40320b17f774bf1f4..ddd98adebf86dba99559221ff45dc8f7b1c37c50 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
+       accessing non-seekable spufs files.
+
 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
 
        * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
index c74f680714d8cf8c28f4413874010fb30557cd0f..c9229898e6b668e6cdf3035de4d8de658559dd87 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * spu-low.c (spu_proc_xfer_spu): Do not return failure when
+       accessing non-seekable spufs files.
+
 2007-05-16  Markus Deuling  <deuling@de.ibm.com>
 
        * server.c (handle_query): Add reply for qC packet. 
index 22ff74a50e753bd09265310ca18c1651d64c486a..4d888331ff6ba70bf4feaba116bede07124c2941 100644 (file)
@@ -248,7 +248,7 @@ spu_proc_xfer_spu (const char *annex, unsigned char *readbuf,
       && lseek (fd, (off_t) offset, SEEK_SET) != (off_t) offset)
     {
       close (fd);
-      return -1;
+      return 0;
     }
 
   if (writebuf)
index 6f55f1adbf97ccf6d4bd1d4a20a7e3a8dfd069eb..21a7c5d00d796afdfd4c4dfcce32ae18168d32d5 100644 (file)
@@ -250,7 +250,7 @@ spu_proc_xfer_spu (const char *annex, gdb_byte *readbuf,
       && lseek (fd, (off_t) offset, SEEK_SET) != (off_t) offset)
     {
       close (fd);
-      return -1;
+      return 0;
     }
 
   if (writebuf)