1 | //===-- ScriptInterpreterPythonInterfaces.cpp -----------------------------===// |
---|---|
2 | // |
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 |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #include "lldb/Core/PluginManager.h" |
10 | #include "lldb/Host/Config.h" |
11 | #include "lldb/lldb-enumerations.h" |
12 | |
13 | #if LLDB_ENABLE_PYTHON |
14 | |
15 | #include "ScriptInterpreterPythonInterfaces.h" |
16 | |
17 | using namespace lldb; |
18 | using namespace lldb_private; |
19 | |
20 | LLDB_PLUGIN_DEFINE(ScriptInterpreterPythonInterfaces) |
21 | |
22 | llvm::StringRef |
23 | ScriptInterpreterPythonInterfaces::GetPluginDescriptionStatic() { |
24 | return "Script Interpreter Python Interfaces"; |
25 | } |
26 | |
27 | void ScriptInterpreterPythonInterfaces::Initialize() { |
28 | OperatingSystemPythonInterface::Initialize(); |
29 | ScriptedPlatformPythonInterface::Initialize(); |
30 | ScriptedProcessPythonInterface::Initialize(); |
31 | ScriptedStopHookPythonInterface::Initialize(); |
32 | ScriptedThreadPlanPythonInterface::Initialize(); |
33 | } |
34 | |
35 | void ScriptInterpreterPythonInterfaces::Terminate() { |
36 | OperatingSystemPythonInterface::Terminate(); |
37 | ScriptedPlatformPythonInterface::Terminate(); |
38 | ScriptedProcessPythonInterface::Terminate(); |
39 | ScriptedStopHookPythonInterface::Terminate(); |
40 | ScriptedThreadPlanPythonInterface::Terminate(); |
41 | } |
42 | |
43 | #endif |
44 |