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]

Public Types

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

Public Member Functions

 StopHook (const StopHook &rhs)
 
virtual ~StopHook ()=default
 
lldb::TargetSPGetTarget ()
 
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.
 
 ~UserID ()=default
 Destructor.
 
void Clear ()
 Clears the object state.
 
lldb::user_id_t GetID () const
 Get accessor for the user ID.
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID.
 

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.
 

Detailed Description

Definition at line 1291 of file Target.h.

Member Enumeration Documentation

◆ StopHookKind

enum class lldb_private::Target::StopHook::StopHookKind : uint32_t
strong
Enumerator
CommandBased 
ScriptBased 

Definition at line 1296 of file Target.h.

◆ StopHookResult

enum class lldb_private::Target::StopHook::StopHookResult : uint32_t
strong
Enumerator
KeepStopped 
RequestContinue 
AlreadyContinued 

Definition at line 1297 of file Target.h.

Constructor & Destructor Documentation

◆ StopHook() [1/2]

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

Definition at line 3705 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 3701 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 1334 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 1309 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 1303 of file Target.h.

References m_target_sp.

◆ GetThreadSpecifier()

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

Definition at line 1324 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 1326 of file Target.h.

References m_active.

◆ SetAutoContinue()

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

Definition at line 1330 of file Target.h.

References m_auto_continue.

◆ SetIsActive()

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

Definition at line 1328 of file Target.h.

References m_active.

◆ SetSpecifier()

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

Definition at line 3713 of file Target.cpp.

◆ SetThreadSpecifier()

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

Definition at line 3717 of file Target.cpp.

Member Data Documentation

◆ m_active

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

Definition at line 1344 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 1345 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 1342 of file Target.h.

Referenced by GetSpecifier().

◆ m_target_sp

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

Definition at line 1341 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 1343 of file Target.h.

Referenced by GetThreadSpecifier(), and StopHook().


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