Introduce target_fileio_fstat
authorGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:28 +0000 (13:38 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:28 +0000 (13:38 +0100)
commit9b15c1f0419ae693fdcf6cca399e9a916e14c48e
tree9e17d419e6ef53e2a22b4e993b71d8af96382186
parent3d5ff6205b2e62388280661769cc0555a58a1358
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.
gdb/ChangeLog
gdb/inf-child.c
gdb/remote.c
gdb/target.c
gdb/target.h