brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · d43036d Raw
46 lines · cpp
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-exception6//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_PYTHON14 15#include "ScriptInterpreterPythonInterfaces.h"16 17using namespace lldb;18using namespace lldb_private;19 20LLDB_PLUGIN_DEFINE(ScriptInterpreterPythonInterfaces)21 22llvm::StringRef23ScriptInterpreterPythonInterfaces::GetPluginDescriptionStatic() {24  return "Script Interpreter Python Interfaces";25}26 27void ScriptInterpreterPythonInterfaces::Initialize() {28  OperatingSystemPythonInterface::Initialize();29  ScriptedPlatformPythonInterface::Initialize();30  ScriptedProcessPythonInterface::Initialize();31  ScriptedStopHookPythonInterface::Initialize();32  ScriptedBreakpointPythonInterface::Initialize();33  ScriptedThreadPlanPythonInterface::Initialize();34}35 36void ScriptInterpreterPythonInterfaces::Terminate() {37  OperatingSystemPythonInterface::Terminate();38  ScriptedPlatformPythonInterface::Terminate();39  ScriptedProcessPythonInterface::Terminate();40  ScriptedStopHookPythonInterface::Terminate();41  ScriptedBreakpointPythonInterface::Terminate();42  ScriptedThreadPlanPythonInterface::Terminate();43}44 45#endif46