aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-04-02 13:38:28 +0100
committerGary Benson <gbenson@redhat.com>2015-04-02 13:38:28 +0100
commit9b15c1f0419ae693fdcf6cca399e9a916e14c48e (patch)
tree9e17d419e6ef53e2a22b4e993b71d8af96382186 /gdb/remote.c
parent3d5ff6205b2e62388280661769cc0555a58a1358 (diff)
downloadgdb-9b15c1f0419ae693fdcf6cca399e9a916e14c48e.zip
gdb-9b15c1f0419ae693fdcf6cca399e9a916e14c48e.tar.gz
gdb-9b15c1f0419ae693fdcf6cca399e9a916e14c48e.tar.bz2
Introduce target_fileio_fstat
This commit introduces a new target method target_fileio_fstat which can be used to retrieve information about files opened with target_fileio_open. gdb/ChangeLog: * target.h (struct target_ops) <to_fileio_fstat>: New field. (target_fileio_fstat): New declaration. * target.c (target_fileio_fstat): New function. * inf-child.c (inf_child_fileio_fstat): Likewise. (inf_child_target): Initialize to_fileio_fstat. * remote.c (init_remote_ops): Likewise.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 131ebf1..e0c831e 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -11817,6 +11817,7 @@ Specify the serial device it is connected to\n\
remote_ops.to_fileio_open = remote_hostio_open;
remote_ops.to_fileio_pwrite = remote_hostio_pwrite;
remote_ops.to_fileio_pread = remote_hostio_pread;
+ remote_ops.to_fileio_fstat = remote_hostio_fstat;
remote_ops.to_fileio_close = remote_hostio_close;
remote_ops.to_fileio_unlink = remote_hostio_unlink;
remote_ops.to_fileio_readlink = remote_hostio_readlink;