summaryrefslogtreecommitdiffstats
path: root/lldb/source/lldb.cpp
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-03-07 03:37:15 +0000
committerVince Harron <vharron@google.com>2015-03-07 03:37:15 +0000
commitb3237de6e498eab2c5b8dcd99e5141ad220293cf (patch)
tree3a6000f51d6c2cbafb691f7b8e0b98f084c9c4dc /lldb/source/lldb.cpp
parent923147b95448476478297b30af7645b910da2dbe (diff)
downloadbcm5719-llvm-b3237de6e498eab2c5b8dcd99e5141ad220293cf.tar.gz
bcm5719-llvm-b3237de6e498eab2c5b8dcd99e5141ad220293cf.zip
Move Python Init from InitializeForLLGS to Initialize
Linux configure+make builds have ~175 tests failing that aren't failing in cmake builds. The tests have error messages like "'a.out' doesn't contain the architecture x86-64" ObjectFileELF plugin wasn't loaded when this message was output. I found ScriptInterpreterPython::InitializePrivate() is calling Debugger::Terminate(), which terminates ObjectFileELF (and lots of other stuff) setup earlier in the InitializeForLLGS. So I moved python Init/Term from Init/TermForLLGS to Init/Term llvm-svn: 231550
Diffstat (limited to 'lldb/source/lldb.cpp')
-rw-r--r--lldb/source/lldb.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/lldb/source/lldb.cpp b/lldb/source/lldb.cpp
index ae481b5a118..69fdb105f5b 100644
--- a/lldb/source/lldb.cpp
+++ b/lldb/source/lldb.cpp
@@ -186,11 +186,6 @@ lldb_private::InitializeForLLGS ()
PlatformDarwinKernel::Initialize();
ObjectFileMachO::Initialize();
#endif
-
-#ifndef LLDB_DISABLE_PYTHON
- ScriptInterpreterPython::InitializePrivate();
- OperatingSystemPython::Initialize();
-#endif
}
}
@@ -206,6 +201,12 @@ lldb_private::Initialize ()
if (!g_inited)
{
g_inited = true;
+
+#ifndef LLDB_DISABLE_PYTHON
+ ScriptInterpreterPython::InitializePrivate();
+ OperatingSystemPython::Initialize();
+#endif
+
// Initialize LLVM and Clang
llvm::InitializeAllTargets();
llvm::InitializeAllAsmPrinters();
@@ -304,9 +305,6 @@ lldb_private::TerminateLLGS ()
PlatformDarwinKernel::Terminate();
SymbolVendorMacOSX::Terminate();
#endif
-#ifndef LLDB_DISABLE_PYTHON
- OperatingSystemPython::Terminate();
-#endif
Log::Terminate();
}
@@ -350,6 +348,11 @@ lldb_private::Terminate ()
PlatformRemoteGDBServer::Terminate();
ProcessGDBRemote::Terminate();
DynamicLoaderStatic::Terminate();
+
+#ifndef LLDB_DISABLE_PYTHON
+ OperatingSystemPython::Terminate();
+#endif
+
TerminateLLGS();
}
OpenPOWER on IntegriCloud