aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-17 21:39:11 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:46:13 -0700
commitdbbca37d38772f0f75296b01b757225278eb51fc (patch)
tree558564b53947b27dcc91244d0e4b9e044063b485 /gdb/remote.c
parentdf39ea259cf099cb2de3d26905078dddf47832cd (diff)
downloadgdb-dbbca37d38772f0f75296b01b757225278eb51fc.zip
gdb-dbbca37d38772f0f75296b01b757225278eb51fc.tar.gz
gdb-dbbca37d38772f0f75296b01b757225278eb51fc.tar.bz2
Add target_ops argument to to_fileio_unlink
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_fileio_unlink>: Add argument. * target.c (target_fileio_unlink): Add argument. * remote.c (remote_hostio_unlink): Add 'self' argument. (remote_file_delete): Update. * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 19bef54..cf8870e 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -9770,7 +9770,8 @@ remote_hostio_close (struct target_ops *self, int fd, int *remote_errno)
occurs (and set *REMOTE_ERRNO). */
static int
-remote_hostio_unlink (const char *filename, int *remote_errno)
+remote_hostio_unlink (struct target_ops *self,
+ const char *filename, int *remote_errno)
{
struct remote_state *rs = get_remote_state ();
char *p = rs->buf;
@@ -10152,7 +10153,8 @@ remote_file_delete (const char *remote_file, int from_tty)
if (!rs->remote_desc)
error (_("command can only be used with remote target"));
- retcode = remote_hostio_unlink (remote_file, &remote_errno);
+ retcode = remote_hostio_unlink (find_target_at (process_stratum),
+ remote_file, &remote_errno);
if (retcode == -1)
remote_hostio_error (remote_errno);