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:
parent
0d866f62e8
commit
a3be983cee
5 changed files with 19 additions and 6 deletions
|
@ -730,7 +730,8 @@ struct target_ops
|
|||
/* Read up to LEN bytes FD on the target into READ_BUF.
|
||||
Return the number of bytes read, or -1 if an error occurs
|
||||
(and set *TARGET_ERRNO). */
|
||||
int (*to_fileio_pread) (int fd, gdb_byte *read_buf, int len,
|
||||
int (*to_fileio_pread) (struct target_ops *,
|
||||
int fd, gdb_byte *read_buf, int len,
|
||||
ULONGEST offset, int *target_errno);
|
||||
|
||||
/* Close FD on the target. Return 0, or -1 if an error occurs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue