rgiese created this revision. rgiese requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits.
The `File::OpenOptions` were renamed; this fixes up a callsite that breaks for macOS builds. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D107767 Files: lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm 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<NativeFile>(created_fd, file_options, true); [options setValue:[NSNumber numberWithInteger:created_fd] forKey:key]; return error; // Success
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<NativeFile>(created_fd, file_options, true); [options setValue:[NSNumber numberWithInteger:created_fd] forKey:key]; return error; // Success
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits