diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-05-21 15:58:02 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-07-18 13:24:20 +0100 |
commit | 3055e3d2f13bb84db90b9c19d427c362053775d2 (patch) | |
tree | 7c79e60f89f0ca5c7f5ee6adcfb5b7dd2f1a75d7 /gdb/inf-child.h | |
parent | 08a115cc1c45cd74f0e8993d1487528547c84509 (diff) | |
download | fsf-binutils-gdb-3055e3d2f13bb84db90b9c19d427c362053775d2.zip fsf-binutils-gdb-3055e3d2f13bb84db90b9c19d427c362053775d2.tar.gz fsf-binutils-gdb-3055e3d2f13bb84db90b9c19d427c362053775d2.tar.bz2 |
gdb: add GDB side target_ops::fileio_stat implementation
This commit adds the GDB side of target_ops::fileio_stat. There's an
implementation for inf_child_target, which just calls 'lstat', and
there's an implementation for remote_target, which sends a new
vFile:stat packet.
The new packet is documented.
There's still no users of target_fileio_stat as I have not yet added
support for vFile::stat to gdbserver. If these packets are currently
sent to gdbserver then they will be reported as not supported and the
ENOSYS error code will be returned.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/inf-child.h')
-rw-r--r-- | gdb/inf-child.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/inf-child.h b/gdb/inf-child.h index 91955a6..65d42e1 100644 --- a/gdb/inf-child.h +++ b/gdb/inf-child.h @@ -81,6 +81,8 @@ public: int fileio_pread (int fd, gdb_byte *read_buf, int len, ULONGEST offset, fileio_error *target_errno) override; int fileio_fstat (int fd, struct stat *sb, fileio_error *target_errno) override; + int fileio_stat (struct inferior *inf, const char *filename, + struct stat *sb, fileio_error *target_errno) override; int fileio_close (int fd, fileio_error *target_errno) override; int fileio_unlink (struct inferior *inf, const char *filename, |