From cd897586764fedd7c5dec6266fcda7b1699015d1 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Dec 2013 21:38:21 -0700 Subject: Add target_ops argument to to_fileio_open 2014-02-19 Tom Tromey * target.h (struct target_ops) : Add argument. * target.c (target_fileio_open): Add argument. * remote.c (remote_hostio_open): Add 'self' argument. (remote_bfd_iovec_open): Add 'self' argument. (remote_file_put): Add 'self' argument. (remote_file_get): Add 'self' argument. * inf-child.c (inf_child_fileio_open): 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 c809c1b..68b3aee 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -716,7 +716,8 @@ struct target_ops /* Open FILENAME on the target, using FLAGS and MODE. Return a target file descriptor, or -1 if an error occurs (and set *TARGET_ERRNO). */ - int (*to_fileio_open) (const char *filename, int flags, int mode, + int (*to_fileio_open) (struct target_ops *, + const char *filename, int flags, int mode, int *target_errno); /* Write up to LEN bytes from WRITE_BUF to FD on the target. -- cgit v1.1