aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-01-19 09:16:16 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2022-01-19 09:56:55 -0800
commiteb5c0ea681803361a1944c966f4becaa9e22dc1a (patch)
tree1dab18243e015d5db2e96efb7539c0e1ccd28a6b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent85c2bd2a0e0e2c1706bbf50203d5bbbeedbbd741 (diff)
downloadllvm-eb5c0ea681803361a1944c966f4becaa9e22dc1a.zip
llvm-eb5c0ea681803361a1944c966f4becaa9e22dc1a.tar.gz
llvm-eb5c0ea681803361a1944c966f4becaa9e22dc1a.tar.bz2
[lldb] Initialize Python exactly once
We got a few crash reports that showed LLDB initializing Python on two separate threads. Make sure Python is initialized exactly once. rdar://87287005 Differential revision: https://reviews.llvm.org/D117601
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
index defc2ac..3b80c67 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
@@ -341,7 +341,7 @@ public:
static bool WatchpointCallbackFunction(void *baton,
StoppointCallbackContext *context,
lldb::user_id_t watch_id);
- static void InitializePrivate();
+ static void Initialize();
class SynchronicityHandler {
private: