From 9b15c1f0419ae693fdcf6cca399e9a916e14c48e Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Thu, 2 Apr 2015 13:38:28 +0100 Subject: 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) : 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. --- gdb/remote.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/remote.c') 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; -- cgit v1.1