aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-12 14:31:26 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-12 14:31:26 +0000
commit374c1d382bcb2271b3a39ee369717f255ca0777a (patch)
tree989130eb5dea296e48f94e4863d26fa41030f9db /gdb/gdbserver
parentba5016f142dbb4e7dbcc40d4e1317d6a95f01ea4 (diff)
downloadgdb-374c1d382bcb2271b3a39ee369717f255ca0777a.zip
gdb-374c1d382bcb2271b3a39ee369717f255ca0777a.tar.gz
gdb-374c1d382bcb2271b3a39ee369717f255ca0777a.tar.bz2
ChangeLog:
* 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.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/spu-low.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index c74f680..c922989 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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.
diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c
index 22ff74a..4d88833 100644
--- a/gdb/gdbserver/spu-low.c
+++ b/gdb/gdbserver/spu-low.c
@@ -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)