From 0d866f62e8517512fdc0fe92e3f2e4675b2d716f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:38:34 -0700 Subject: Add target_ops argument to to_fileio_pwrite 2014-02-19 Tom Tromey * target.h (struct target_ops) : 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. --- gdb/target.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/target.h') diff --git a/gdb/target.h b/gdb/target.h index 68b3aee..02b66d7 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -723,7 +723,8 @@ struct target_ops /* Write up to LEN bytes from WRITE_BUF to FD on the target. Return the number of bytes written, or -1 if an error occurs (and set *TARGET_ERRNO). */ - int (*to_fileio_pwrite) (int fd, const gdb_byte *write_buf, int len, + int (*to_fileio_pwrite) (struct target_ops *, + int fd, const gdb_byte *write_buf, int len, ULONGEST offset, int *target_errno); /* Read up to LEN bytes FD on the target into READ_BUF. -- cgit v1.1