[lldb] [gdb-remote] Add fallbacks for vFile:mode and vFile:exists
authorMichał Górny <mgorny@moritz.systems>
Tue, 10 Aug 2021 11:01:34 +0000 (13:01 +0200)
committerMichał Górny <mgorny@moritz.systems>
Fri, 10 Sep 2021 12:08:36 +0000 (14:08 +0200)
commit501eaf88770d15de92fa0eb7435f0470a3b93b0a
treee96cdf81ec13fa14756fb22e602412a83d307fe7
parentdbb0c14d2729d135d9d6bb2d0e858e128129da08
[lldb] [gdb-remote] Add fallbacks for vFile:mode and vFile:exists

Add a GDB-compatible fallback to vFile:fstat for vFile:mode, and to
vFile:open for vFile:exists.  Note that this is only partial fallback,
as it fails if the file cannot be opened.

Differential Revision: https://reviews.llvm.org/D107811
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
lldb/test/API/functionalities/gdb_remote_client/TestGDBRemotePlatformFile.py