LLDB mainline
lldb_private::ScriptedStopHookInterface Class Referenceabstract

#include <ScriptedStopHookInterface.h>

Inheritance diagram for lldb_private::ScriptedStopHookInterface:
[legend]

Public Member Functions

virtual llvm::Expected< StructuredData::GenericSPCreatePluginObject (llvm::StringRef class_name, lldb::TargetSP target_sp, const StructuredDataImpl &args_sp)=0
virtual llvm::Expected< boolHandleStop (ExecutionContext &exe_ctx, lldb::StreamSP &output_sp)
 "handle_stop" will return a bool with the meaning "should_stop"... If nothing is returned, we'll assume we are going to stop.
Public Member Functions inherited from lldb_private::ScriptedInterface
 ScriptedInterface ()=default
virtual ~ScriptedInterface ()=default
StructuredData::GenericSP GetScriptObjectInstance ()
virtual llvm::SmallVector< AbstractMethodRequirementGetAbstractMethodRequirements () const =0
virtual llvm::Expected< FileSpecGetScriptedModulePath ()
llvm::SmallVector< llvm::StringLiteral > const GetAbstractMethods () const

Additional Inherited Members

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)
Protected Attributes inherited from lldb_private::ScriptedInterface
StructuredData::GenericSP m_object_instance_sp

Detailed Description

Definition at line 17 of file ScriptedStopHookInterface.h.

Member Function Documentation

◆ CreatePluginObject()

virtual llvm::Expected< StructuredData::GenericSP > lldb_private::ScriptedStopHookInterface::CreatePluginObject ( llvm::StringRef class_name,
lldb::TargetSP target_sp,
const StructuredDataImpl & args_sp )
pure virtual

◆ HandleStop()

virtual llvm::Expected< bool > lldb_private::ScriptedStopHookInterface::HandleStop ( ExecutionContext & exe_ctx,
lldb::StreamSP & output_sp )
inlinevirtual

"handle_stop" will return a bool with the meaning "should_stop"... If nothing is returned, we'll assume we are going to stop.

Also any errors should return true, since we should stop on error.

Reimplemented in lldb_private::ScriptedStopHookPythonInterface.

Definition at line 26 of file ScriptedStopHookInterface.h.


The documentation for this class was generated from the following file: