aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-child.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:38:34 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:11 -0700
commit0d866f62e8517512fdc0fe92e3f2e4675b2d716f (patch)
treed18e12c078f0b4194c89c3bad3bdc6f5190c4262 /gdb/inf-child.c
parentcd897586764fedd7c5dec6266fcda7b1699015d1 (diff)
downloadfsf-binutils-gdb-0d866f62e8517512fdc0fe92e3f2e4675b2d716f.zip
fsf-binutils-gdb-0d866f62e8517512fdc0fe92e3f2e4675b2d716f.tar.gz
fsf-binutils-gdb-0d866f62e8517512fdc0fe92e3f2e4675b2d716f.tar.bz2
Add target_ops argument to to_fileio_pwrite
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_fileio_pwrite>: Add argument. * target.c (target_fileio_pwrite): Add argument. * remote.c (remote_hostio_pwrite): Add 'self' argument. (remote_file_put): Update. * inf-child.c (inf_child_fileio_pwrite): 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 cd2aee6..6486b2c 100644
--- a/gdb/inf-child.c
+++ b/gdb/inf-child.c
@@ -257,7 +257,8 @@ inf_child_fileio_open (struct target_ops *self,
Return the number of bytes written, or -1 if an error occurs
(and set *TARGET_ERRNO). */
static int
-inf_child_fileio_pwrite (int fd, const gdb_byte *write_buf, int len,
+inf_child_fileio_pwrite (struct target_ops *self,
+ int fd, const gdb_byte *write_buf, int len,
ULONGEST offset, int *target_errno)
{
int ret;