LLDB  mainline
Public Member Functions | Protected Member Functions | 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 ()
 

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_RECORD_CONSTRUCTOR_NO_ARGS.

◆ SBListener() [2/4]

SBListener::SBListener ( const char *  name)

Definition at line 27 of file SBListener.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ SBListener() [3/4]

SBListener::SBListener ( const SBListener rhs)

Definition at line 32 of file SBListener.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBListener()

SBListener::~SBListener ( )

Definition at line 51 of file SBListener.cpp.

◆ SBListener() [4/4]

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

Definition at line 48 of file SBListener.cpp.

Member Function Documentation

◆ AddEvent()

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

Definition at line 63 of file SBListener.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBListener >().

◆ Clear()

void SBListener::Clear ( )

◆ GetNextEvent()

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

Definition at line 254 of file SBListener.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBListener >().

◆ 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)

◆ IsValid()

bool SBListener::IsValid ( ) const

◆ operator bool()

SBListener::operator bool ( ) const
explicit

Definition at line 57 of file SBListener.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator=()

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

Definition at line 37 of file SBListener.cpp.

References LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ PeekAtNextEvent()

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

Definition at line 212 of file SBListener.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBListener >().

◆ 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 
)

◆ 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 142 of file SBListener.cpp.

References LLDB_RECORD_METHOD, and UINT32_MAX.

Referenced by lldb_private::repro::RegisterMethods< SBListener >().

◆ 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.


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