LLDB mainline
ScriptInterpreterPython.h
Go to the documentation of this file.
1//===-- ScriptInterpreterPython.h -------------------------------*- C++ -*-===//
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#ifndef LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H
10#define LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H
11
13#include "lldb/Core/IOHandler.h"
16#include "lldb/lldb-private.h"
17
18#include <memory>
19#include <string>
20#include <vector>
21
22namespace lldb_private {
23/// Abstract interface for the Python script interpreter.
26public:
39
41 : ScriptInterpreter(debugger, lldb::eScriptLanguagePython),
43
45 static void Initialize();
46 static void Terminate();
47 static llvm::StringRef GetPluginNameStatic() { return "script-python"; }
48 static llvm::StringRef GetPluginDescriptionStatic();
49 static FileSpec GetPythonDir();
50 static void SharedLibraryDirectoryHelper(FileSpec &this_file);
51
52protected:
55};
56} // namespace lldb_private
57
58#endif // LLDB_SOURCE_PLUGINS_SCRIPTINTERPRETER_PYTHON_SCRIPTINTERPRETERPYTHON_H
"lldb/Breakpoint/BreakpointOptions.h" Class that manages the options on a breakpoint or breakpoint lo...
A class to manage flag bits.
Definition Debugger.h:87
A file utility class.
Definition FileSpec.h:57
IOHandlerDelegateMultiline(llvm::StringRef end_line, Completion completion=Completion::None)
Definition IOHandler.h:289
static void ComputePythonDir(llvm::SmallVectorImpl< char > &path)
static void ComputePythonDirForApple(llvm::SmallVectorImpl< char > &path)
StructuredData::DictionarySP GetInterpreterInfo() override
static void SharedLibraryDirectoryHelper(FileSpec &this_file)
ScriptInterpreter(Debugger &debugger, lldb::ScriptLanguage script_lang)
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
A class that represents a running process on the host machine.
@ eScriptLanguagePython