Add a GDB-compatible fallback to vFile:fstat for vFile:mode, and to
vFile:open for vFile:exists.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It seems useful to note that these are only approximations, as they will fail for unreadable files, even though normally these operations should succeed. However, I think it is the best we can do given the limited set of supported operations (i.e., lack of stat(2) syscall and/or O_PATH argument to open(2)).
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | ||
---|---|---|
3185–3186 | This is exactly the use case that if-declarations (if (Optional<...> st = ...)were designed for. |
This is exactly the use case that if-declarations (if (Optional<...> st = ...)were designed for.