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.
This commit is contained in:
Ulrich Weigand 2007-06-12 14:31:26 +00:00
parent ba5016f142
commit 374c1d382b
4 changed files with 12 additions and 2 deletions

View 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

View 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.

View 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)

View 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)