|
LLDB mainline
|
#include <ScriptedPlatformPythonInterface.h>
Public Member Functions | |
| ScriptedPlatformPythonInterface (ScriptInterpreterPythonImpl &interpreter) | |
| llvm::Expected< StructuredData::GenericSP > | CreatePluginObject (const llvm::StringRef class_name, ExecutionContext &exe_ctx, StructuredData::DictionarySP args_sp, StructuredData::Generic *script_obj=nullptr) override |
| llvm::SmallVector< AbstractMethodRequirement > | GetAbstractMethodRequirements () const override |
| StructuredData::DictionarySP | ListProcesses () override |
| StructuredData::DictionarySP | GetProcessInfo (lldb::pid_t) override |
| Status | AttachToProcess (lldb::ProcessAttachInfoSP attach_info) override |
| Status | LaunchProcess (lldb::ProcessLaunchInfoSP launch_info) override |
| Status | KillProcess (lldb::pid_t pid) override |
| llvm::StringRef | GetPluginName () override |
| Public Member Functions inherited from lldb_private::ScriptedInterface | |
| ScriptedInterface ()=default | |
| virtual | ~ScriptedInterface ()=default |
| StructuredData::GenericSP | GetScriptObjectInstance () |
| llvm::SmallVector< llvm::StringLiteral > const | GetAbstractMethods () const |
| Public Member Functions inherited from lldb_private::ScriptedPythonInterface | |
| ScriptedPythonInterface (ScriptInterpreterPythonImpl &interpreter) | |
| ~ScriptedPythonInterface () override=default | |
| llvm::Expected< FileSpec > | GetScriptedModulePath () override |
| llvm::Expected< std::map< llvm::StringLiteral, AbstractMethodCheckerPayload > > | CheckAbstractMethodImplementation (const python::PythonDictionary &class_dict) const |
| template<typename... Args> | |
| llvm::Expected< StructuredData::GenericSP > | CreatePluginObject (llvm::StringRef class_name, StructuredData::Generic *script_obj, Args... args) |
| template<typename T = StructuredData::ObjectSP, typename... Args> | |
| T | CallStaticMethod (llvm::StringRef class_name, llvm::StringRef method_name, Status &error, Args &&...args) |
| Call a static method on a Python class without creating an instance. | |
| Public Member Functions inherited from lldb_private::PluginInterface | |
| PluginInterface ()=default | |
| virtual | ~PluginInterface ()=default |
| PluginInterface (const PluginInterface &)=delete | |
| PluginInterface & | operator= (const PluginInterface &)=delete |
Static Public Member Functions | |
| static void | Initialize () |
| static void | Terminate () |
| static llvm::StringRef | GetPluginNameStatic () |
| Static Public Member Functions inherited from lldb_private::ScriptedInterface | |
| template<typename Ret> | |
| static Ret | ErrorWithMessage (llvm::StringRef caller_name, llvm::StringRef error_msg, Status &error, LLDBLog log_category=LLDBLog::Process) |
| template<typename T = StructuredData::ObjectSP> | |
| static bool | CheckStructuredDataObject (llvm::StringRef caller, T obj, Status &error) |
| static bool | CreateInstance (lldb::ScriptLanguage language, ScriptedInterfaceUsages usages) |
Definition at line 17 of file ScriptedPlatformPythonInterface.h.
| ScriptedPlatformPythonInterface::ScriptedPlatformPythonInterface | ( | ScriptInterpreterPythonImpl & | interpreter | ) |
Definition at line 29 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::ScriptedPythonInterface().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedPlatformInterface.
Definition at line 79 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
overridevirtual |
Implements lldb_private::ScriptedPlatformInterface.
Definition at line 34 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::CreatePluginObject().
|
inlineoverridevirtual |
Implements lldb_private::ScriptedInterface.
Definition at line 30 of file ScriptedPlatformPythonInterface.h.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 56 of file ScriptedPlatformPythonInterface.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 52 of file ScriptedPlatformPythonInterface.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedPlatformInterface.
Definition at line 62 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::Dispatch(), error(), and lldb_private::ScriptedInterface::ErrorWithMessage().
|
static |
Definition at line 95 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), lldb::eScriptLanguagePython, GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedPlatformInterface.
Definition at line 91 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedPlatformInterface.
Definition at line 85 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedPlatformInterface.
Definition at line 44 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::Dispatch(), error(), and lldb_private::ScriptedInterface::ErrorWithMessage().
|
static |
Definition at line 101 of file ScriptedPlatformPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Terminate().