Add target_ops argument to to_fileio_pread

2014-02-19  Tom Tromey  <tromey@redhat.com>

	* target.h (struct target_ops) <to_fileio_pread>: Add argument.
	* target.c (target_fileio_pread): Add argument.
	* remote.c (remote_hostio_pread): Add 'self' argument.
	(remote_bfd_iovec_pread, remote_file_get): Update.
	* inf-child.c (inf_child_fileio_pread): Add 'self' argument.
This commit is contained in:
Tom Tromey 2013-12-17 21:38:46 -07:00
parent 0d866f62e8
commit a3be983cee
5 changed files with 19 additions and 6 deletions

View file

@ -286,7 +286,8 @@ inf_child_fileio_pwrite (struct target_ops *self,
Return the number of bytes read, or -1 if an error occurs
(and set *TARGET_ERRNO). */
static int
inf_child_fileio_pread (int fd, gdb_byte *read_buf, int len,
inf_child_fileio_pread (struct target_ops *self,
int fd, gdb_byte *read_buf, int len,
ULONGEST offset, int *target_errno)
{
int ret;