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
Collaboration diagram for lldb_private::Target::StopHook:
Collaboration graph

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::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.
 ~UserID ()=default
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 1247 of file Target.h.

Member Enumeration Documentation

◆ StopHookKind


Definition at line 1252 of file Target.h.

◆ StopHookResult


Definition at line 1253 of file Target.h.

Constructor & Destructor Documentation

◆ StopHook() [1/2]

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

Definition at line 3588 of file Target.cpp.

References m_thread_spec_up.

◆ ~StopHook()

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

◆ StopHook() [2/2]

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

Definition at line 3584 of file Target.cpp.

Member Function Documentation

◆ ExecutionContextPasses()

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

◆ GetAutoContinue()

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

Definition at line 1290 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 ( )

Definition at line 1265 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 ( )

Definition at line 1259 of file Target.h.

References m_target_sp.

◆ GetThreadSpecifier()

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

Definition at line 1280 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 ( )

Definition at line 1282 of file Target.h.

References m_active.

◆ SetAutoContinue()

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

Definition at line 1286 of file Target.h.

References m_auto_continue.

◆ SetIsActive()

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

Definition at line 1284 of file Target.h.

References m_active.

◆ SetSpecifier()

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

Definition at line 3596 of file Target.cpp.

◆ SetThreadSpecifier()

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

Definition at line 3600 of file Target.cpp.

Member Data Documentation

◆ m_active

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

Definition at line 1300 of file Target.h.

Referenced by IsActive(), and SetIsActive().

◆ m_auto_continue

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

Definition at line 1301 of file Target.h.

Referenced by GetAutoContinue(), and SetAutoContinue().

◆ m_specifier_sp

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

Definition at line 1298 of file Target.h.

Referenced by GetSpecifier().

◆ m_target_sp

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

Definition at line 1297 of file Target.h.

Referenced by GetTarget().

◆ m_thread_spec_up

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

Definition at line 1299 of file Target.h.

Referenced by GetThreadSpecifier(), and StopHook().

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