From 374c1d382bcb2271b3a39ee369717f255ca0777a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 12 Jun 2007 14:31:26 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/spu-low.c | 2 +- gdb/spu-linux-nat.c | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d40213421c..ddd98adebf8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-06-12 Ulrich Weigand + + * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when + accessing non-seekable spufs files. + 2007-06-09 Markus Deuling * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index c74f680714d..c9229898e6b 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-06-12 Ulrich Weigand + + * spu-low.c (spu_proc_xfer_spu): Do not return failure when + accessing non-seekable spufs files. + 2007-05-16 Markus Deuling * server.c (handle_query): Add reply for qC packet. diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index 22ff74a50e7..4d888331ff6 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) diff --git a/gdb/spu-linux-nat.c b/gdb/spu-linux-nat.c index 6f55f1adbf9..21a7c5d00d7 100644 --- a/gdb/spu-linux-nat.c +++ b/gdb/spu-linux-nat.c @@ -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) -- 2.30.2