|
LLDB mainline
|
#include <ScriptedBreakpointPythonInterface.h>
Public Member Functions | |
| ScriptedBreakpointPythonInterface (ScriptInterpreterPythonImpl &interpreter) | |
| llvm::Expected< StructuredData::GenericSP > | CreatePluginObject (llvm::StringRef class_name, lldb::BreakpointSP break_sp, const StructuredDataImpl &args_sp) override |
| llvm::SmallVector< AbstractMethodRequirement > | GetAbstractMethodRequirements () const override |
| bool | ResolverCallback (SymbolContext sym_ctx) override |
| "ResolverCallback" will get called when a new module is loaded. | |
| lldb::SearchDepth | GetDepth () override |
| std::optional< std::string > | GetShortHelp () override |
| lldb::BreakpointLocationSP | WasHit (lldb::StackFrameSP frame_sp, lldb::BreakpointLocationSP bp_loc_sp) override |
| WasHit returns the breakpoint location SP for the location that was "hit". | |
| virtual std::optional< std::string > | GetLocationDescription (lldb::BreakpointLocationSP bp_loc_sp, lldb::DescriptionLevel level) 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 18 of file ScriptedBreakpointPythonInterface.h.
| ScriptedBreakpointPythonInterface::ScriptedBreakpointPythonInterface | ( | ScriptInterpreterPythonImpl & | interpreter | ) |
Definition at line 26 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::ScriptedPythonInterface().
|
overridevirtual |
Implements lldb_private::ScriptedBreakpointInterface.
Definition at line 31 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::CreatePluginObject().
|
inlineoverridevirtual |
Implements lldb_private::ScriptedInterface.
Definition at line 29 of file ScriptedBreakpointPythonInterface.h.
|
overridevirtual |
Reimplemented from lldb_private::ScriptedBreakpointInterface.
Definition at line 53 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), error(), lldb::eSearchDepthModule, and lldb::kLastSearchDepthKind.
|
overridevirtual |
Reimplemented from lldb_private::ScriptedBreakpointInterface.
Definition at line 94 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 51 of file ScriptedBreakpointPythonInterface.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 47 of file ScriptedBreakpointPythonInterface.h.
Referenced by GetPluginName(), and Initialize().
|
overridevirtual |
Reimplemented from lldb_private::ScriptedBreakpointInterface.
Definition at line 69 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), and error().
|
static |
Definition at line 107 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), lldb::eScriptLanguagePython, GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Initialize().
|
overridevirtual |
"ResolverCallback" will get called when a new module is loaded.
The new module information is passed in sym_ctx. The Resolver will add any breakpoint locations it found in that module.
Reimplemented from lldb_private::ScriptedBreakpointInterface.
Definition at line 38 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CheckStructuredDataObject(), lldb_private::ScriptedPythonInterface::Dispatch(), error(), lldb_private::GetLog(), LLDB_LOG, and lldb_private::Script.
|
static |
Definition at line 119 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedInterface::CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
Referenced by lldb_private::ScriptInterpreterPythonInterfaces::Terminate().
|
overridevirtual |
WasHit returns the breakpoint location SP for the location that was "hit".
Reimplemented from lldb_private::ScriptedBreakpointInterface.
Definition at line 81 of file ScriptedBreakpointPythonInterface.cpp.
References lldb_private::ScriptedPythonInterface::Dispatch(), and lldb_private::Status::Fail().