LLDB mainline
lldb_private::Target::StopHookCoded Class Reference

#include <Target.h>

Inheritance diagram for lldb_private::Target::StopHookCoded:
[legend]

Public Types

using HandleStopCallback
Public Types inherited from lldb_private::Target::StopHook
enum class  StopHookKind : uint32_t { CommandBased = 0 , ScriptBased , CodeBased }
enum class  StopHookResult : uint32_t { KeepStopped = 0 , RequestContinue , NoPreference , AlreadyContinued }

Public Member Functions

 ~StopHookCoded () override=default
void SetCallback (llvm::StringRef name, HandleStopCallback *callback)
StopHookResult HandleStop (ExecutionContext &exc_ctx, lldb::StreamSP output) override
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::TargetSPGetTarget ()
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 SetRunAtInitialStop (bool at_initial_stop)
bool GetRunAtInitialStop () const
void SetSuppressOutput (bool suppress_output)
bool GetSuppressOutput () 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.
 ~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.

Private Member Functions

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

Private Attributes

std::string m_name
HandleStopCallbackm_callback

Friends

class Target

Additional Inherited Members

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
bool m_at_initial_stop = true
bool m_suppress_output = 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 1482 of file Target.h.

Member Typedef Documentation

◆ HandleStopCallback

Initial value:
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
std::shared_ptr< lldb_private::Stream > StreamSP

Definition at line 1486 of file Target.h.

Constructor & Destructor Documentation

◆ ~StopHookCoded()

lldb_private::Target::StopHookCoded::~StopHookCoded ( )
overridedefault

◆ StopHookCoded()

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

Use CreateStopHook to make a new empty stop hook.

Use SetCallback to set the callback to execute, and SetSpecifier to set the specifier shared pointer (can be null, that will match anything.)

Definition at line 1512 of file Target.h.

References lldb_private::Target::StopHook::StopHook().

Member Function Documentation

◆ GetSubclassDescription()

void lldb_private::Target::StopHookCoded::GetSubclassDescription ( Stream & s,
lldb::DescriptionLevel level ) const
inlineoverridevirtual

◆ HandleStop()

StopHookResult lldb_private::Target::StopHookCoded::HandleStop ( ExecutionContext & exc_ctx,
lldb::StreamSP output )
inlineoverridevirtual

Implements lldb_private::Target::StopHook.

Definition at line 1494 of file Target.h.

References m_callback.

◆ SetCallback()

void lldb_private::Target::StopHookCoded::SetCallback ( llvm::StringRef name,
HandleStopCallback * callback )
inline

Definition at line 1489 of file Target.h.

References m_callback, and m_name.

◆ Target

friend class Target
friend

Definition at line 1514 of file Target.h.

References Target.

Referenced by Target.

Member Data Documentation

◆ m_callback

HandleStopCallback* lldb_private::Target::StopHookCoded::m_callback
private

Definition at line 1507 of file Target.h.

Referenced by HandleStop(), and SetCallback().

◆ m_name

std::string lldb_private::Target::StopHookCoded::m_name
private

Definition at line 1506 of file Target.h.

Referenced by GetSubclassDescription(), and SetCallback().


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