|
LLDB mainline
|
#include <ScriptedProcessPythonInterface.h>
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 user_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) |
Private Member Functions | |
| lldb::ScriptedThreadInterfaceSP | CreateScriptedThreadInterface () override |
Additional Inherited Members | |
| Public Types inherited from lldb_private::ScriptedPythonInterface | |
| enum class | AbstractMethodCheckerCases { eNotImplemented , eNotAllocated , eNotCallable , eUnknownArgumentCount , eInvalidArgumentCount , eValid } |
| Protected Member Functions inherited from lldb_private::ScriptedPythonInterface | |
| template<typename T = StructuredData::ObjectSP> | |
| T | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<typename T = StructuredData::ObjectSP, typename... Args> | |
| T | Dispatch (llvm::StringRef method_name, Status &error, Args &&...args) |
| template<typename... Args> | |
| Status | GetStatusFromMethod (llvm::StringRef method_name, Args &&...args) |
| template<typename T> | |
| T | Transform (T object) |
| python::PythonObject | Transform (bool arg) |
| python::PythonObject | Transform (const Status &arg) |
| python::PythonObject | Transform (Status &&arg) |
| python::PythonObject | Transform (const StructuredDataImpl &arg) |
| template<typename T, typename = std::enable_if_t< std::is_base_of_v<StructuredData::Object, T>>> | |
| python::PythonObject | Transform (std::shared_ptr< T > arg) |
| python::PythonObject | Transform (lldb::ExecutionContextRefSP arg) |
| python::PythonObject | Transform (lldb::TargetSP arg) |
| python::PythonObject | Transform (lldb::BreakpointSP arg) |
| python::PythonObject | Transform (lldb::BreakpointLocationSP arg) |
| python::PythonObject | Transform (lldb::ProcessSP arg) |
| python::PythonObject | Transform (lldb::ThreadSP arg) |
| python::PythonObject | Transform (lldb::StackFrameListSP arg) |
| python::PythonObject | Transform (lldb::ThreadPlanSP arg) |
| python::PythonObject | Transform (lldb::ProcessAttachInfoSP arg) |
| python::PythonObject | Transform (lldb::ProcessLaunchInfoSP arg) |
| python::PythonObject | Transform (Event *arg) |
| python::PythonObject | Transform (const SymbolContext &arg) |
| python::PythonObject | Transform (lldb::StreamSP arg) |
| python::PythonObject | Transform (lldb::StackFrameSP arg) |
| python::PythonObject | Transform (lldb::DataExtractorSP arg) |
| python::PythonObject | Transform (lldb::DescriptionLevel arg) |
| python::PythonObject | Transform (lldb::ValueObjectSP arg) |
| python::PythonObject | Transform (lldb::DebuggerSP arg) |
| python::PythonObject | Transform (const std::vector< std::string > &arg) |
| python::ScopedPythonObject< lldb::SBCommandReturnObject > | Transform (CommandReturnObject *arg) |
| python::PythonObject | Transform (const TypeSummaryOptions &arg) |
| template<typename T, typename U> | |
| void | ReverseTransform (T &original_arg, U transformed_arg, Status &error) |
| template<typename T> | |
| void | ReverseTransform (T &original_arg, python::PythonObject transformed_arg, Status &error) |
| template<typename T> | |
| void | ReverseTransform (const T &original_arg, python::PythonObject transformed_arg, Status &error) |
| void | ReverseTransform (bool &original_arg, python::PythonObject transformed_arg, Status &error) |
| template<std::size_t... I, typename... Args> | |
| auto | TransformTuple (const std::tuple< Args... > &args, std::index_sequence< I... >) |
| template<typename... Args> | |
| auto | TransformArgs (const std::tuple< Args... > &args) |
| template<typename T, typename U> | |
| void | TransformBack (T &original_arg, U transformed_arg, Status &error) |
| template<typename T, typename SB> | |
| void | TransformBack (T &original_arg, python::ScopedPythonObject< SB > &transformed_arg, Status &error) |
| template<std::size_t... I, typename... Ts, typename... Us> | |
| bool | ReassignPtrsOrRefsArgs (std::tuple< Ts... > &original_args, std::tuple< Us... > &transformed_args, std::index_sequence< I... >) |
| template<typename... Ts, typename... Us> | |
| bool | ReassignPtrsOrRefsArgs (std::tuple< Ts... > &original_args, std::tuple< Us... > &transformed_args) |
| template<typename T, typename... Args> | |
| void | FormatArgs (std::string &fmt, T arg, Args... args) const |
| template<typename T> | |
| void | FormatArgs (std::string &fmt, T arg) const |
| void | FormatArgs (std::string &fmt) const |
| template<> | |
| Status | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| Event * | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| CommandReturnObject * | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| SymbolContext | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| Status | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| Event * | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| template<> | |
| SymbolContext | ExtractValueFromPythonObject (python::PythonObject &p, Status &error) |
| Static Protected Member Functions inherited from lldb_private::ScriptedPythonInterface | |
| static std::string | ExtractPythonError (llvm::Error error) |
| Extract detailed error message including Python backtrace if available. | |
| template<std::size_t N, typename Tuple, typename Fn, std::size_t... I> | |
| static void | ApplyPrefixImpl (Tuple &&t, Fn &&fn, std::index_sequence< I... >) |
| template<std::size_t N, typename Tuple, typename Fn> | |
| static void | ApplyPrefix (Tuple &&t, Fn &&fn) |
| template<typename Tuple, std::size_t... Is, typename Fn> | |
| static void | CallWithArity (size_t call_arity, Tuple &&t, std::index_sequence< Is... >, Fn &&fn) |
| Protected Attributes inherited from lldb_private::ScriptedInterface | |
| StructuredData::GenericSP | m_object_instance_sp |
| std::optional< ScriptedMetadata > | m_scripted_metadata |
| Protected Attributes inherited from lldb_private::ScriptedPythonInterface | |
| ScriptInterpreterPythonImpl & | m_interpreter |
Definition at line 19 of file ScriptedProcessPythonInterface.h.
| ScriptedProcessPythonInterface::ScriptedProcessPythonInterface | ( | ScriptInterpreterPythonImpl & | interpreter | ) |
Definition at line 29 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::ScriptedPythonInterface().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 57 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 98 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), error(), and lldb_private::Status::Fail().
|
overridevirtual |
Implements lldb_private::ScriptedProcessInterface.
Definition at line 34 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::CreatePluginObject(), and lldb_private::ScriptedMetadata::GetArgsSP().
|
overrideprivatevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 192 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::m_interpreter.
|
inlineoverridevirtual |
Implements lldb_private::ScriptedInterface.
Definition at line 31 of file ScriptedProcessPythonInterface.h.
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 44 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 145 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 73 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::Dispatch(), error(), and lldb_private::ScriptedInterface::ErrorWithMessage().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 196 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 79 of file ScriptedProcessPythonInterface.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 75 of file ScriptedProcessPythonInterface.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 157 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), error(), and LLDB_INVALID_PROCESS_ID.
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 180 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 86 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
static |
Definition at line 208 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), lldb::eScriptedExtensionScriptedProcess, lldb::eScriptLanguagePython, GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 168 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 63 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 115 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::Dispatch(), error(), and lldb_private::Status::Fail().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 67 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::GetStatusFromMethod().
|
static |
Definition at line 225 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Terminate().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedProcessInterface.
Definition at line 128 of file ScriptedProcessPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), error(), lldb_private::Status::Fail(), and LLDB_INVALID_OFFSET.