Yeah, this is a bug in lldb's implementation of vFile:open. lldb talks to
lldb-server (in platform mode) so it will work with itself, but it will not
interoperate with any other implementations. That's the down side to having
the client and server literally built from the same sources. :)
The comments in File.h say:
// NB this enum is used in the lldb platform gdb-remote packet
// vFile:open: and existing values cannot be modified.
enum OpenOptions {
eOpenOptionRead = (1u << 0), // Open file for reading
eOpenOptionWrite = (1u << 1), // Open file for writing