Add a GDB-compatible fallback to vFile:fstat for vFile:mode, and to
vFile:open for vFile:exists.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
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)).
Comment Actions
Note as in mention in commit message, add a comment, add to documentation somewhere?
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | ||
|---|---|---|
| 3202–3203 | 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.