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:
Jason Molenda
2014-03-07 06:28:29 +00:00
parent e3176267c2
commit e4ea6f5901
2 changed files with 7 additions and 7 deletions

View File

@@ -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;

View File

@@ -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();