LLDB mainline
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBListener Class Reference

#include <SBListener.h>

Public Member Functions

 SBListener ()
 
 SBListener (const char *name)
 
 SBListener (const SBListener &rhs)
 
 ~SBListener ()
 
const lldb::SBListeneroperator= (const lldb::SBListener &rhs)
 
void AddEvent (const lldb::SBEvent &event)
 
void Clear ()
 
 operator bool () const
 
bool IsValid () const
 
uint32_t StartListeningForEventClass (SBDebugger &debugger, const char *broadcaster_class, uint32_t event_mask)
 
bool StopListeningForEventClass (SBDebugger &debugger, const char *broadcaster_class, uint32_t event_mask)
 
uint32_t StartListeningForEvents (const lldb::SBBroadcaster &broadcaster, uint32_t event_mask)
 
bool StopListeningForEvents (const lldb::SBBroadcaster &broadcaster, uint32_t event_mask)
 
bool WaitForEvent (uint32_t num_seconds, lldb::SBEvent &event)
 
bool WaitForEventForBroadcaster (uint32_t num_seconds, const lldb::SBBroadcaster &broadcaster, lldb::SBEvent &sb_event)
 
bool WaitForEventForBroadcasterWithType (uint32_t num_seconds, const lldb::SBBroadcaster &broadcaster, uint32_t event_type_mask, lldb::SBEvent &sb_event)
 
bool PeekAtNextEvent (lldb::SBEvent &sb_event)
 
bool PeekAtNextEventForBroadcaster (const lldb::SBBroadcaster &broadcaster, lldb::SBEvent &sb_event)
 
bool PeekAtNextEventForBroadcasterWithType (const lldb::SBBroadcaster &broadcaster, uint32_t event_type_mask, lldb::SBEvent &sb_event)
 
bool GetNextEvent (lldb::SBEvent &sb_event)
 
bool GetNextEventForBroadcaster (const lldb::SBBroadcaster &broadcaster, lldb::SBEvent &sb_event)
 
bool GetNextEventForBroadcasterWithType (const lldb::SBBroadcaster &broadcaster, uint32_t event_type_mask, lldb::SBEvent &sb_event)
 
bool HandleBroadcastEvent (const lldb::SBEvent &event)
 

Protected Member Functions

 SBListener (const lldb::ListenerSP &listener_sp)
 
lldb::ListenerSP GetSP ()
 

Private Member Functions

lldb_private::Listeneroperator-> () const
 
lldb_private::Listenerget () const
 
void reset (lldb::ListenerSP listener_sp)
 

Private Attributes

lldb::ListenerSP m_opaque_sp
 
lldb_private::Listenerm_unused_ptr = nullptr
 

Friends

class SBAttachInfo
 
class SBBroadcaster
 
class SBCommandInterpreter
 
class SBDebugger
 
class SBLaunchInfo
 
class SBTarget
 

Detailed Description

Definition at line 16 of file SBListener.h.

Constructor & Destructor Documentation

◆ SBListener() [1/4]

SBListener::SBListener ( )

Definition at line 23 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBListener() [2/4]

SBListener::SBListener ( const char *  name)

Definition at line 25 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBListener() [3/4]

SBListener::SBListener ( const SBListener rhs)

Definition at line 30 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBListener()

SBListener::~SBListener ( )
default

◆ SBListener() [4/4]

SBListener::SBListener ( const lldb::ListenerSP listener_sp)
protected

Definition at line 44 of file SBListener.cpp.

Member Function Documentation

◆ AddEvent()

void SBListener::AddEvent ( const lldb::SBEvent event)

Definition at line 59 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ Clear()

void SBListener::Clear ( )

Definition at line 67 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ get()

Listener * SBListener::get ( ) const
private

Definition at line 290 of file SBListener.cpp.

References m_opaque_sp.

◆ GetNextEvent()

bool SBListener::GetNextEvent ( lldb::SBEvent sb_event)

Definition at line 230 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ GetNextEventForBroadcaster()

bool SBListener::GetNextEventForBroadcaster ( const lldb::SBBroadcaster broadcaster,
lldb::SBEvent sb_event 
)

◆ GetNextEventForBroadcasterWithType()

bool SBListener::GetNextEventForBroadcasterWithType ( const lldb::SBBroadcaster broadcaster,
uint32_t  event_type_mask,
lldb::SBEvent sb_event 
)

◆ GetSP()

lldb::ListenerSP SBListener::GetSP ( )
protected

◆ HandleBroadcastEvent()

bool SBListener::HandleBroadcastEvent ( const lldb::SBEvent event)

Definition at line 278 of file SBListener.cpp.

References lldb::SBEvent::GetSP(), LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ IsValid()

bool SBListener::IsValid ( ) const

◆ operator bool()

SBListener::operator bool ( ) const
explicit

Definition at line 53 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator->()

Listener * SBListener::operator-> ( ) const
private

Definition at line 288 of file SBListener.cpp.

References m_opaque_sp.

◆ operator=()

const lldb::SBListener & SBListener::operator= ( const lldb::SBListener rhs)

Definition at line 34 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and m_unused_ptr.

◆ PeekAtNextEvent()

bool SBListener::PeekAtNextEvent ( lldb::SBEvent sb_event)

Definition at line 193 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_sp.

◆ PeekAtNextEventForBroadcaster()

bool SBListener::PeekAtNextEventForBroadcaster ( const lldb::SBBroadcaster broadcaster,
lldb::SBEvent sb_event 
)

◆ PeekAtNextEventForBroadcasterWithType()

bool SBListener::PeekAtNextEventForBroadcasterWithType ( const lldb::SBBroadcaster broadcaster,
uint32_t  event_type_mask,
lldb::SBEvent sb_event 
)

◆ reset()

void SBListener::reset ( lldb::ListenerSP  listener_sp)
private

Definition at line 292 of file SBListener.cpp.

References m_opaque_sp, and m_unused_ptr.

Referenced by lldb::SBDebugger::GetListener().

◆ StartListeningForEventClass()

uint32_t SBListener::StartListeningForEventClass ( SBDebugger debugger,
const char *  broadcaster_class,
uint32_t  event_mask 
)

◆ StartListeningForEvents()

uint32_t SBListener::StartListeningForEvents ( const lldb::SBBroadcaster broadcaster,
uint32_t  event_mask 
)

◆ StopListeningForEventClass()

bool SBListener::StopListeningForEventClass ( SBDebugger debugger,
const char *  broadcaster_class,
uint32_t  event_mask 
)

◆ StopListeningForEvents()

bool SBListener::StopListeningForEvents ( const lldb::SBBroadcaster broadcaster,
uint32_t  event_mask 
)

◆ WaitForEvent()

bool SBListener::WaitForEvent ( uint32_t  num_seconds,
lldb::SBEvent event 
)

Definition at line 129 of file SBListener.cpp.

References LLDB_INSTRUMENT_VA, m_opaque_sp, and UINT32_MAX.

◆ WaitForEventForBroadcaster()

bool SBListener::WaitForEventForBroadcaster ( uint32_t  num_seconds,
const lldb::SBBroadcaster broadcaster,
lldb::SBEvent sb_event 
)

◆ WaitForEventForBroadcasterWithType()

bool SBListener::WaitForEventForBroadcasterWithType ( uint32_t  num_seconds,
const lldb::SBBroadcaster broadcaster,
uint32_t  event_type_mask,
lldb::SBEvent sb_event 
)

Friends And Related Function Documentation

◆ SBAttachInfo

friend class SBAttachInfo
friend

Definition at line 84 of file SBListener.h.

◆ SBBroadcaster

friend class SBBroadcaster
friend

Definition at line 85 of file SBListener.h.

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 86 of file SBListener.h.

◆ SBDebugger

friend class SBDebugger
friend

Definition at line 87 of file SBListener.h.

◆ SBLaunchInfo

friend class SBLaunchInfo
friend

Definition at line 88 of file SBListener.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 89 of file SBListener.h.

Member Data Documentation

◆ m_opaque_sp

lldb::ListenerSP lldb::SBListener::m_opaque_sp
private

◆ m_unused_ptr

lldb_private::Listener* lldb::SBListener::m_unused_ptr = nullptr
private

Definition at line 103 of file SBListener.h.

Referenced by operator=(), and reset().


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