diff options
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 19254d6..c4440ce 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -846,6 +846,12 @@ struct target_ops int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *target_errno); + /* Get information about the file opened as FD and put it in + SB. Return 0 on success, or -1 if an error occurs (and set + *TARGET_ERRNO). */ + int (*to_fileio_fstat) (struct target_ops *, + int fd, struct stat *sb, int *target_errno); + /* Close FD on the target. Return 0, or -1 if an error occurs (and set *TARGET_ERRNO). */ int (*to_fileio_close) (struct target_ops *, int fd, int *target_errno); @@ -1933,6 +1939,12 @@ extern int target_fileio_pwrite (int fd, const gdb_byte *write_buf, int len, extern int target_fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, int *target_errno); +/* Get information about the file opened as FD on the target + and put it in SB. Return 0 on success, or -1 if an error + occurs (and set *TARGET_ERRNO). */ +extern int target_fileio_fstat (int fd, struct stat *sb, + int *target_errno); + /* Close FD on the target. Return 0, or -1 if an error occurs (and set *TARGET_ERRNO). */ extern int target_fileio_close (int fd, int *target_errno); |