diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-17 21:38:59 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:46:13 -0700 |
commit | df39ea259cf099cb2de3d26905078dddf47832cd (patch) | |
tree | 93085f53a93ab0a0c3b436da9f0d215aa0c6705c /gdb/remote.c | |
parent | a3be983cee10c1bcd7cda582c3bb91c065ad97a2 (diff) | |
download | gdb-df39ea259cf099cb2de3d26905078dddf47832cd.zip gdb-df39ea259cf099cb2de3d26905078dddf47832cd.tar.gz gdb-df39ea259cf099cb2de3d26905078dddf47832cd.tar.bz2 |
Add target_ops argument to to_fileio_close
2014-02-19 Tom Tromey <tromey@redhat.com>
* target.h (struct target_ops) <to_fileio_close>: Add argument.
* target.c (target_fileio_close): Add argument.
* remote.c (remote_hostio_close): Add 'self' argument.
(remote_hostio_close_cleanup): Update.
(remote_bfd_iovec_close, remote_file_put, remote_file_get):
Update.
* inf-child.c (inf_child_fileio_close): Add 'self' argument.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 814f945..19bef54 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -9752,7 +9752,7 @@ remote_hostio_pread (struct target_ops *self, (and set *REMOTE_ERRNO). */ static int -remote_hostio_close (int fd, int *remote_errno) +remote_hostio_close (struct target_ops *self, int fd, int *remote_errno) { struct remote_state *rs = get_remote_state (); char *p = rs->buf; @@ -9891,7 +9891,7 @@ remote_hostio_close_cleanup (void *opaque) int fd = *(int *) opaque; int remote_errno; - remote_hostio_close (fd, &remote_errno); + remote_hostio_close (find_target_at (process_stratum), fd, &remote_errno); } @@ -9928,7 +9928,7 @@ remote_bfd_iovec_close (struct bfd *abfd, void *stream) /* Ignore errors on close; these may happen if the remote connection was already torn down. */ - remote_hostio_close (fd, &remote_errno); + remote_hostio_close (find_target_at (process_stratum), fd, &remote_errno); /* Zero means success. */ return 0; @@ -10077,7 +10077,7 @@ remote_file_put (const char *local_file, const char *remote_file, int from_tty) } discard_cleanups (close_cleanup); - if (remote_hostio_close (fd, &remote_errno)) + if (remote_hostio_close (find_target_at (process_stratum), fd, &remote_errno)) remote_hostio_error (remote_errno); if (from_tty) @@ -10135,7 +10135,7 @@ remote_file_get (const char *remote_file, const char *local_file, int from_tty) } discard_cleanups (close_cleanup); - if (remote_hostio_close (fd, &remote_errno)) + if (remote_hostio_close (find_target_at (process_stratum), fd, &remote_errno)) remote_hostio_error (remote_errno); if (from_tty) |