1 //===-- ScriptInterpreterPythonInterfaces.cpp -----------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Core/PluginManager.h"
10 #include "lldb/Host/Config.h"
11 #include "lldb/lldb-enumerations.h"
13 #if LLDB_ENABLE_PYTHON
15 #include "ScriptInterpreterPythonInterfaces.h"
18 using namespace lldb_private
;
20 LLDB_PLUGIN_DEFINE(ScriptInterpreterPythonInterfaces
)
23 ScriptInterpreterPythonInterfaces::GetPluginDescriptionStatic() {
24 return "Script Interpreter Python Interfaces";
27 void ScriptInterpreterPythonInterfaces::Initialize() {
28 OperatingSystemPythonInterface::Initialize();
29 ScriptedPlatformPythonInterface::Initialize();
30 ScriptedProcessPythonInterface::Initialize();
31 ScriptedStopHookPythonInterface::Initialize();
32 ScriptedThreadPlanPythonInterface::Initialize();
35 void ScriptInterpreterPythonInterfaces::Terminate() {
36 OperatingSystemPythonInterface::Terminate();
37 ScriptedPlatformPythonInterface::Terminate();
38 ScriptedProcessPythonInterface::Terminate();
39 ScriptedStopHookPythonInterface::Terminate();
40 ScriptedThreadPlanPythonInterface::Terminate();