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

@ -3430,7 +3430,7 @@ target_fileio_pread (int fd, gdb_byte *read_buf, int len,
{
if (t->to_fileio_pread != NULL)
{
int ret = t->to_fileio_pread (fd, read_buf, len, offset,
int ret = t->to_fileio_pread (t, fd, read_buf, len, offset,
target_errno);
if (targetdebug)