LLDB  mainline
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
lldb_private::Target::StopHook Class Referenceabstract

#include <Target.h>

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

Public Types

enum  StopHookKind : uint32_t { StopHookKind::CommandBased = 0, StopHookKind::ScriptBased }
 
enum  StopHookResult : uint32_t { StopHookResult::KeepStopped = 0, StopHookResult::RequestContinue, StopHookResult::AlreadyContinued }
 

Public Member Functions

 StopHook (const StopHook &rhs)
 
virtual ~StopHook ()=default
 
lldb::TargetSP & GetTarget ()
 
void SetSpecifier (SymbolContextSpecifier *specifier)
 
SymbolContextSpecifierGetSpecifier ()
 
bool ExecutionContextPasses (const ExecutionContext &exe_ctx)
 
virtual StopHookResult HandleStop (ExecutionContext &exe_ctx, lldb::StreamSP output)=0
 
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
 
virtual void GetSubclassDescription (Stream *s, lldb::DescriptionLevel level) const =0
 
- 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...
 

Protected Member Functions

 StopHook (lldb::TargetSP target_sp, lldb::user_id_t uid)
 

Protected Attributes

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 1182 of file Target.h.

Member Enumeration Documentation

◆ StopHookKind

Enumerator
CommandBased 
ScriptBased 

Definition at line 1187 of file Target.h.

◆ StopHookResult

Enumerator
KeepStopped 
RequestContinue 
AlreadyContinued 

Definition at line 1188 of file Target.h.

Constructor & Destructor Documentation

◆ StopHook() [1/2]

Target::StopHook::StopHook ( const StopHook rhs)

Definition at line 3271 of file Target.cpp.

References m_thread_spec_up.

◆ ~StopHook()

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

◆ StopHook() [2/2]

Target::StopHook::StopHook ( lldb::TargetSP  target_sp,
lldb::user_id_t  uid 
)
protected

Definition at line 3267 of file Target.cpp.

Member Function Documentation

◆ ExecutionContextPasses()

bool Target::StopHook::ExecutionContextPasses ( const ExecutionContext exe_ctx)

◆ GetAutoContinue()

bool lldb_private::Target::StopHook::GetAutoContinue ( ) const
inline

Definition at line 1225 of file Target.h.

References m_auto_continue.

◆ GetDescription()

void Target::StopHook::GetDescription ( Stream s,
lldb::DescriptionLevel  level 
) const

◆ GetSpecifier()

SymbolContextSpecifier* lldb_private::Target::StopHook::GetSpecifier ( )
inline

Definition at line 1200 of file Target.h.

References m_specifier_sp.

◆ GetSubclassDescription()

virtual void lldb_private::Target::StopHook::GetSubclassDescription ( Stream s,
lldb::DescriptionLevel  level 
) const
pure virtual

◆ GetTarget()

lldb::TargetSP& lldb_private::Target::StopHook::GetTarget ( )
inline

Definition at line 1194 of file Target.h.

References m_target_sp.

◆ GetThreadSpecifier()

ThreadSpec* lldb_private::Target::StopHook::GetThreadSpecifier ( )
inline

Definition at line 1215 of file Target.h.

References m_thread_spec_up.

◆ HandleStop()

virtual StopHookResult lldb_private::Target::StopHook::HandleStop ( ExecutionContext exe_ctx,
lldb::StreamSP  output 
)
pure virtual

◆ IsActive()

bool lldb_private::Target::StopHook::IsActive ( )
inline

Definition at line 1217 of file Target.h.

References m_active.

◆ SetAutoContinue()

void lldb_private::Target::StopHook::SetAutoContinue ( bool  auto_continue)
inline

Definition at line 1221 of file Target.h.

References m_auto_continue.

◆ SetIsActive()

void lldb_private::Target::StopHook::SetIsActive ( bool  is_active)
inline

Definition at line 1219 of file Target.h.

References m_active.

◆ SetSpecifier()

void Target::StopHook::SetSpecifier ( SymbolContextSpecifier specifier)

Definition at line 3279 of file Target.cpp.

◆ SetThreadSpecifier()

void Target::StopHook::SetThreadSpecifier ( ThreadSpec specifier)

Definition at line 3283 of file Target.cpp.

Member Data Documentation

◆ m_active

bool lldb_private::Target::StopHook::m_active = true
protected

Definition at line 1235 of file Target.h.

Referenced by IsActive(), and SetIsActive().

◆ m_auto_continue

bool lldb_private::Target::StopHook::m_auto_continue = false
protected

Definition at line 1236 of file Target.h.

Referenced by GetAutoContinue(), and SetAutoContinue().

◆ m_specifier_sp

lldb::SymbolContextSpecifierSP lldb_private::Target::StopHook::m_specifier_sp
protected

Definition at line 1233 of file Target.h.

Referenced by GetSpecifier().

◆ m_target_sp

lldb::TargetSP lldb_private::Target::StopHook::m_target_sp
protected

Definition at line 1232 of file Target.h.

Referenced by GetTarget().

◆ m_thread_spec_up

std::unique_ptr<ThreadSpec> lldb_private::Target::StopHook::m_thread_spec_up
protected

Definition at line 1234 of file Target.h.

Referenced by GetThreadSpecifier(), and StopHook().


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