summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-02-12 18:18:27 +0000
committerTamas Berghammer <tberghammer@google.com>2015-02-12 18:18:27 +0000
commit3c4f89d7029ad73ce25c798ab2109d3eea7d7151 (patch)
tree5e50a26030f9716cecc97028253e6bf4662a299a /lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
parent00e305d281502a9b4d90dc02aa4c7dad819a9083 (diff)
downloadbcm5719-llvm-3c4f89d7029ad73ce25c798ab2109d3eea7d7151.tar.gz
bcm5719-llvm-3c4f89d7029ad73ce25c798ab2109d3eea7d7151.zip
Add Initialize/Terminate method to Platform base plugin
Platform holds a smart pointer to each platform object created in a static variable what cause the platform destructors called only on program exit when other static variables are not availables. With this change the destructors are called on lldb_private::Terminate() + Fix DebuggerRefCount handling in ScriptInterpreterPython Differential Revision: http://reviews.llvm.org/D7590 llvm-svn: 228944
Diffstat (limited to 'lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp')
-rw-r--r--lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
index a6998a51eba..c70e0849585 100644
--- a/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
+++ b/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
@@ -242,6 +242,8 @@ PlatformLinux::GetPluginName()
void
PlatformLinux::Initialize ()
{
+ PlatformPOSIX::Initialize ();
+
if (g_initialize_count++ == 0)
{
#if defined(__linux__)
@@ -266,6 +268,8 @@ PlatformLinux::Terminate ()
PluginManager::UnregisterPlugin (PlatformLinux::CreateInstance);
}
}
+
+ PlatformPOSIX::Terminate ();
}
Error
OpenPOWER on IntegriCloud