aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:38:46 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:12 -0700
commita3be983cee10c1bcd7cda582c3bb91c065ad97a2 (patch)
tree43e1d2669b2c8a5aa4b3639bd132cac291ff1d4b /gdb/inf-child.c
parent0d866f62e8517512fdc0fe92e3f2e4675b2d716f (diff)
downloadgdb-a3be983cee10c1bcd7cda582c3bb91c065ad97a2.zip
gdb-a3be983cee10c1bcd7cda582c3bb91c065ad97a2.tar.gz
gdb-a3be983cee10c1bcd7cda582c3bb91c065ad97a2.tar.bz2
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.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r--gdb/inf-child.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c
index 6486b2c..8837fd8 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -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;