[mlir] Update Ch-2.md (#121379)
[llvm-project.git] / lldb / source / Plugins / ScriptInterpreter / Python / Interfaces / ScriptInterpreterPythonInterfaces.cpp
blob1fd32993e385ebb4ab3205c0ad03cd6a295d4cae
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 //===----------------------------------------------------------------------===//
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"
17 using namespace lldb;
18 using namespace lldb_private;
20 LLDB_PLUGIN_DEFINE(ScriptInterpreterPythonInterfaces)
22 llvm::StringRef
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();
43 #endif