mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
Todd points out that my change to ProcessElfCore is probably
not going to key off of the ELF object file like I'd intended. Revert my change in r203205; also revert Greg's change in r203107 which builds ProcessElfCore on non-Linux/FreeBSD systems for the moment until we can straighten this out. llvm-svn: 203207
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user