LLDB  mainline
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb_private::Target::StopHookScripted Class Reference

#include <Target.h>

Inheritance diagram for lldb_private::Target::StopHookScripted:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::Target::StopHookScripted:
Collaboration graph
[legend]

Public Member Functions

virtual ~StopHookScripted ()=default
 
StopHookResult HandleStop (ExecutionContext &exc_ctx, lldb::StreamSP output) override
 
Status SetScriptCallback (std::string class_name, StructuredData::ObjectSP extra_args_sp)
 
void GetSubclassDescription (Stream *s, lldb::DescriptionLevel level) const override
 
- Public Member Functions inherited from lldb_private::Target::StopHook
 StopHook (const StopHook &rhs)
 
virtual ~StopHook ()=default
 
lldb::TargetSP & GetTarget ()
 
void SetSpecifier (SymbolContextSpecifier *specifier)
 
SymbolContextSpecifierGetSpecifier ()
 
bool ExecutionContextPasses (const ExecutionContext &exe_ctx)
 
void SetThreadSpecifier (ThreadSpec *specifier)
 
ThreadSpecGetThreadSpecifier ()
 
bool IsActive ()
 
void SetIsActive (bool is_active)
 
void SetAutoContinue (bool auto_continue)
 
bool GetAutoContinue () const
 
void GetDescription (Stream *s, lldb::DescriptionLevel level) const
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()=default
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 

Private Member Functions

 StopHookScripted (lldb::TargetSP target_sp, lldb::user_id_t uid)
 Use CreateStopHook to make a new empty stop hook. More...
 

Private Attributes

std::string m_class_name
 
StructuredDataImplm_extra_args
 This holds the dictionary of keys & values that can be used to parametrize any given callback's behavior. More...
 
StructuredData::GenericSP m_implementation_sp
 This holds the python callback object. More...
 

Friends

class Target
 

Additional Inherited Members

- Public Types inherited from lldb_private::Target::StopHook
enum  StopHookKind : uint32_t { StopHookKind::CommandBased = 0, StopHookKind::ScriptBased }
 
enum  StopHookResult : uint32_t { StopHookResult::KeepStopped = 0, StopHookResult::RequestContinue, StopHookResult::AlreadyContinued }
 
- Protected Member Functions inherited from lldb_private::Target::StopHook
 StopHook (lldb::TargetSP target_sp, lldb::user_id_t uid)
 
- Protected Attributes inherited from lldb_private::Target::StopHook
lldb::TargetSP m_target_sp
 
lldb::SymbolContextSpecifierSP m_specifier_sp
 
std::unique_ptr< ThreadSpecm_thread_spec_up
 
bool m_active = true
 
bool m_auto_continue = false
 
- Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object. More...
 

Detailed Description

Definition at line 1264 of file Target.h.

Constructor & Destructor Documentation

◆ ~StopHookScripted()

virtual lldb_private::Target::StopHookScripted::~StopHookScripted ( )
virtualdefault

◆ StopHookScripted()

lldb_private::Target::StopHookScripted::StopHookScripted ( lldb::TargetSP  target_sp,
lldb::user_id_t  uid 
)
inlineprivate

Use CreateStopHook to make a new empty stop hook.

The GetCommandPointer and fill it with commands, and SetSpecifier to set the specifier shared pointer (can be null, that will match anything.)

Definition at line 1288 of file Target.h.

Member Function Documentation

◆ GetSubclassDescription()

void Target::StopHookScripted::GetSubclassDescription ( Stream s,
lldb::DescriptionLevel  level 
) const
overridevirtual

◆ HandleStop()

Target::StopHook::StopHookResult Target::StopHookScripted::HandleStop ( ExecutionContext exc_ctx,
lldb::StreamSP  output 
)
overridevirtual

◆ SetScriptCallback()

Status Target::StopHookScripted::SetScriptCallback ( std::string  class_name,
StructuredData::ObjectSP  extra_args_sp 
)

Friends And Related Function Documentation

◆ Target

friend class Target
friend

Definition at line 1290 of file Target.h.

Member Data Documentation

◆ m_class_name

std::string lldb_private::Target::StopHookScripted::m_class_name
private

Definition at line 1277 of file Target.h.

◆ m_extra_args

StructuredDataImpl* lldb_private::Target::StopHookScripted::m_extra_args
private

This holds the dictionary of keys & values that can be used to parametrize any given callback's behavior.

Definition at line 1280 of file Target.h.

◆ m_implementation_sp

StructuredData::GenericSP lldb_private::Target::StopHookScripted::m_implementation_sp
private

This holds the python callback object.

Definition at line 1283 of file Target.h.


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