Don't force a vendor check in ProcessMachCore::CanDebug() -- if this
authorJason Molenda <jmolenda@apple.com>
Wed, 29 Apr 2015 22:17:45 +0000 (22:17 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 29 Apr 2015 22:17:45 +0000 (22:17 +0000)
is a Mach-O file and it is a Mach-O core file, activate the
ProcessMachCore plugin.
<rdar://problem/20739989>

llvm-svn: 236170

lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp

index 7f978a2..0e3711b 100644 (file)
@@ -110,13 +110,9 @@ ProcessMachCore::CanDebug(Target &target, bool plugin_specified_by_name)
 
         if (m_core_module_sp)
         {
-            const llvm::Triple &triple_ref = m_core_module_sp->GetArchitecture().GetTriple();
-            if (triple_ref.getVendor() == llvm::Triple::Apple)
-            {
-                ObjectFile *core_objfile = m_core_module_sp->GetObjectFile();
-                if (core_objfile && core_objfile->GetType() == ObjectFile::eTypeCoreFile)
-                    return true;
-            }
+            ObjectFile *core_objfile = m_core_module_sp->GetObjectFile();
+            if (core_objfile && core_objfile->GetType() == ObjectFile::eTypeCoreFile)
+                return true;
         }
     }
     return false;