Index: source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp =================================================================== --- source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -5424,7 +5424,7 @@ // Now write the file data for all memory segments in the process for (const auto &segment : segment_load_commands) { - if (segment.fileoff != core_file.SeekFromStart(segment.fileoff)) + if (core_file.SeekFromStart(segment.fileoff) == -1) { error.SetErrorStringWithFormat("unable to seek to offset 0x%" PRIx64 " in '%s'", segment.fileoff, core_file_path.c_str()); break;