summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp10
-rw-r--r--lldb/source/lldb.cpp4
2 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
index 223a2415e59..7ea5c89e7df 100644
--- a/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
+++ b/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
@@ -70,13 +70,9 @@ ProcessElfCore::CanDebug(Target &target, bool plugin_specified_by_name)
NULL, NULL, NULL));
if (m_core_module_sp)
{
- const llvm::Triple &triple_ref = m_core_module_sp->GetArchitecture().GetTriple();
- if (triple_ref.getEnvironment() == llvm::Triple::ELF)
- {
- 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;
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp
index 4afd74e7f54..e96a8788056 100644
--- a/lldb/source/lldb.cpp
+++ b/lldb/source/lldb.cpp
@@ -125,7 +125,9 @@ lldb_private::Initialize ()
OperatingSystemPython::Initialize();
#endif
JITLoaderGDB::Initialize();
+#if defined(__linux__) || defined(__FreeBSD__)
ProcessElfCore::Initialize();
+#endif
#if defined (__APPLE__)
//----------------------------------------------------------------------
@@ -209,7 +211,9 @@ lldb_private::Terminate ()
OperatingSystemPython::Terminate();
#endif
JITLoaderGDB::Terminate();
+#if defined(__linux__) || defined(__FreeBSD__)
ProcessElfCore::Terminate();
+#endif
#if defined (__APPLE__)
DynamicLoaderMacOSXDYLD::Terminate();
OpenPOWER on IntegriCloud