diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp --- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp +++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp @@ -1330,7 +1330,8 @@ if (m_length == 0 || seg_cmd.filesize == 0) return; - if ((m_header.flags & MH_DYLIB_IN_CACHE) && !IsInMemory()) { + if (m_header.filetype != MH_CORE && (m_header.flags & MH_DYLIB_IN_CACHE) && + !IsInMemory()) { // In shared cache images, the load commands are relative to the // shared cache file, and not the the specific image we are // examining. Let's fix this up so that it looks like a normal