diff options
| author | Tamas Berghammer <tberghammer@google.com> | 2015-02-12 18:18:27 +0000 |
|---|---|---|
| committer | Tamas Berghammer <tberghammer@google.com> | 2015-02-12 18:18:27 +0000 |
| commit | 3c4f89d7029ad73ce25c798ab2109d3eea7d7151 (patch) | |
| tree | 5e50a26030f9716cecc97028253e6bf4662a299a /lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | |
| parent | 00e305d281502a9b4d90dc02aa4c7dad819a9083 (diff) | |
| download | bcm5719-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/Android/PlatformAndroid.cpp')
| -rw-r--r-- | lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp index e89254d89f0..5628284476d 100644 --- a/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp +++ b/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp @@ -25,6 +25,8 @@ static uint32_t g_initialize_count = 0; void PlatformAndroid::Initialize () { + PlatformLinux::Initialize (); + if (g_initialize_count++ == 0) { PluginManager::RegisterPlugin (PlatformAndroid::GetPluginNameStatic(), @@ -43,6 +45,8 @@ PlatformAndroid::Terminate () PluginManager::UnregisterPlugin (PlatformAndroid::CreateInstance); } } + + PlatformLinux::Terminate (); } PlatformSP |

