Index: lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm =================================================================== --- lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm +++ lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm @@ -426,9 +426,9 @@ if (created_fd >= 0) { auto file_options = File::OpenOptions(0); if ((oflag & O_RDWR) || (oflag & O_RDONLY)) - file_options |= File::eOpenOptionRead; + file_options |= File::eOpenOptionReadOnly; if ((oflag & O_RDWR) || (oflag & O_RDONLY)) - file_options |= File::eOpenOptionWrite; + file_options |= File::eOpenOptionWriteOnly; file = std::make_shared(created_fd, file_options, true); [options setValue:[NSNumber numberWithInteger:created_fd] forKey:key]; return error; // Success