]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add GDB side target_ops::fileio_stat implementation
authorAndrew Burgess <aburgess@redhat.com>
Tue, 21 May 2024 14:58:02 +0000 (15:58 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 18 Jul 2024 12:24:20 +0000 (13:24 +0100)
commit3055e3d2f13bb84db90b9c19d427c362053775d2
tree7c79e60f89f0ca5c7f5ee6adcfb5b7dd2f1a75d7
parent08a115cc1c45cd74f0e8993d1487528547c84509
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>
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/inf-child.c
gdb/inf-child.h
gdb/remote.c