LLDB mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb_private::Process::ProcessEventData Class Reference

#include <Process.h>

Inheritance diagram for lldb_private::Process::ProcessEventData:
Inheritance graph
[legend]

Public Member Functions

 ProcessEventData ()
 
 ProcessEventData (const lldb::ProcessSP &process, lldb::StateType state)
 
 ~ProcessEventData () override
 
llvm::StringRef GetFlavor () const override
 
lldb::ProcessSP GetProcessSP () const
 
lldb::StateType GetState () const
 
bool GetRestarted () const
 
size_t GetNumRestartedReasons ()
 
const char * GetRestartedReasonAtIndex (size_t idx)
 
bool GetInterrupted () const
 
void Dump (Stream *s) const override
 
virtual bool ShouldStop (Event *event_ptr, bool &found_valid_stopinfo)
 
void DoOnRemoval (Event *event_ptr) override
 
- Public Member Functions inherited from lldb_private::EventData
 EventData ()
 
virtual ~EventData ()
 
virtual llvm::StringRef GetFlavor () const =0
 
virtual LogGetLogChannel ()
 
virtual void Dump (Stream *s) const
 

Static Public Member Functions

static llvm::StringRef GetFlavorString ()
 
static const Process::ProcessEventDataGetEventDataFromEvent (const Event *event_ptr)
 
static lldb::ProcessSP GetProcessFromEvent (const Event *event_ptr)
 
static lldb::StateType GetStateFromEvent (const Event *event_ptr)
 
static bool GetRestartedFromEvent (const Event *event_ptr)
 
static size_t GetNumRestartedReasons (const Event *event_ptr)
 
static const char * GetRestartedReasonAtIndex (const Event *event_ptr, size_t idx)
 
static void AddRestartedReason (Event *event_ptr, const char *reason)
 
static void SetRestartedInEvent (Event *event_ptr, bool new_value)
 
static bool GetInterruptedFromEvent (const Event *event_ptr)
 
static void SetInterruptedInEvent (Event *event_ptr, bool new_value)
 
static bool SetUpdateStateOnRemoval (Event *event_ptr)
 

Private Member Functions

bool ForwardEventToPendingListeners (Event *event_ptr) override
 This will be queried for a Broadcaster with a primary and some secondary listeners after the primary listener pulled the event from the event queue and ran its DoOnRemoval, right before the event is delivered.
 
void SetUpdateStateOnRemoval ()
 
void SetRestarted (bool new_value)
 
void SetInterrupted (bool new_value)
 
void AddRestartedReason (const char *reason)
 
 ProcessEventData (const ProcessEventData &)=delete
 
const ProcessEventDataoperator= (const ProcessEventData &)=delete
 

Private Attributes

lldb::ProcessWP m_process_wp
 
lldb::StateType m_state = lldb::eStateInvalid
 
std::vector< std::string > m_restarted_reasons
 
bool m_restarted = false
 
int m_update_state = 0
 
bool m_interrupted = false
 

Friends

class Process
 

Detailed Description

Definition at line 409 of file Process.h.

Constructor & Destructor Documentation

◆ ProcessEventData() [1/3]

Process::ProcessEventData::ProcessEventData ( )

Definition at line 4154 of file Process.cpp.

◆ ProcessEventData() [2/3]

Process::ProcessEventData::ProcessEventData ( const lldb::ProcessSP process,
lldb::StateType  state 
)

Definition at line 4156 of file Process.cpp.

References m_process_wp.

◆ ~ProcessEventData()

Process::ProcessEventData::~ProcessEventData ( )
overridedefault

◆ ProcessEventData() [3/3]

lldb_private::Process::ProcessEventData::ProcessEventData ( const ProcessEventData )
privatedelete

Member Function Documentation

◆ AddRestartedReason() [1/2]

void lldb_private::Process::ProcessEventData::AddRestartedReason ( const char *  reason)
inlineprivate

Definition at line 476 of file Process.h.

References m_restarted_reasons.

◆ AddRestartedReason() [2/2]

void Process::ProcessEventData::AddRestartedReason ( Event event_ptr,
const char *  reason 
)
static

◆ DoOnRemoval()

void Process::ProcessEventData::DoOnRemoval ( Event event_ptr)
overridevirtual

◆ Dump()

void Process::ProcessEventData::Dump ( Stream s) const
overridevirtual

◆ ForwardEventToPendingListeners()

bool Process::ProcessEventData::ForwardEventToPendingListeners ( Event event_ptr)
overrideprivatevirtual

This will be queried for a Broadcaster with a primary and some secondary listeners after the primary listener pulled the event from the event queue and ran its DoOnRemoval, right before the event is delivered.

If it returns true, the event will also be forwarded to the secondary listeners, and if false, event propagation stops at the primary listener. Some broadcasters (particularly the Process broadcaster) fetch events on a private Listener, and then forward the event to the Public Listeners after some processing. The Process broadcaster does not want to forward to the secondary listeners at the private processing stage.

Reimplemented from lldb_private::EventData.

Definition at line 4269 of file Process.cpp.

References lldb_private::Process::eBroadcastBitStateChanged, and lldb_private::Event::GetType().

◆ GetEventDataFromEvent()

const Process::ProcessEventData * Process::ProcessEventData::GetEventDataFromEvent ( const Event event_ptr)
static

◆ GetFlavor()

llvm::StringRef Process::ProcessEventData::GetFlavor ( ) const
overridevirtual

Implements lldb_private::EventData.

Definition at line 4169 of file Process.cpp.

References GetFlavorString().

◆ GetFlavorString()

llvm::StringRef Process::ProcessEventData::GetFlavorString ( )
static

Definition at line 4165 of file Process.cpp.

Referenced by GetEventDataFromEvent(), and GetFlavor().

◆ GetInterrupted()

bool lldb_private::Process::ProcessEventData::GetInterrupted ( ) const
inline

Definition at line 435 of file Process.h.

References m_interrupted.

Referenced by GetInterruptedFromEvent().

◆ GetInterruptedFromEvent()

bool Process::ProcessEventData::GetInterruptedFromEvent ( const Event event_ptr)
static

◆ GetNumRestartedReasons() [1/2]

size_t lldb_private::Process::ProcessEventData::GetNumRestartedReasons ( )
inline

◆ GetNumRestartedReasons() [2/2]

size_t Process::ProcessEventData::GetNumRestartedReasons ( const Event event_ptr)
static

Definition at line 4409 of file Process.cpp.

References GetNumRestartedReasons().

◆ GetProcessFromEvent()

ProcessSP Process::ProcessEventData::GetProcessFromEvent ( const Event event_ptr)
static

◆ GetProcessSP()

lldb::ProcessSP lldb_private::Process::ProcessEventData::GetProcessSP ( ) const
inline

Definition at line 422 of file Process.h.

References m_process_wp.

Referenced by GetProcessFromEvent(), and lldb_private::Process::RunThreadPlan().

◆ GetRestarted()

bool lldb_private::Process::ProcessEventData::GetRestarted ( ) const
inline

Definition at line 425 of file Process.h.

References m_restarted.

Referenced by GetRestartedFromEvent().

◆ GetRestartedFromEvent()

bool Process::ProcessEventData::GetRestartedFromEvent ( const Event event_ptr)
static

◆ GetRestartedReasonAtIndex() [1/2]

const char * Process::ProcessEventData::GetRestartedReasonAtIndex ( const Event event_ptr,
size_t  idx 
)
static

Definition at line 4419 of file Process.cpp.

References GetRestartedReasonAtIndex().

◆ GetRestartedReasonAtIndex() [2/2]

const char * lldb_private::Process::ProcessEventData::GetRestartedReasonAtIndex ( size_t  idx)
inline

◆ GetState()

lldb::StateType lldb_private::Process::ProcessEventData::GetState ( ) const
inline

Definition at line 424 of file Process.h.

References m_state.

Referenced by GetStateFromEvent().

◆ GetStateFromEvent()

StateType Process::ProcessEventData::GetStateFromEvent ( const Event event_ptr)
static

◆ operator=()

const ProcessEventData & lldb_private::Process::ProcessEventData::operator= ( const ProcessEventData )
privatedelete

◆ SetInterrupted()

void lldb_private::Process::ProcessEventData::SetInterrupted ( bool  new_value)
inlineprivate

Definition at line 474 of file Process.h.

References m_interrupted.

Referenced by SetInterruptedInEvent().

◆ SetInterruptedInEvent()

void Process::ProcessEventData::SetInterruptedInEvent ( Event event_ptr,
bool  new_value 
)
static

Definition at line 4446 of file Process.cpp.

References SetInterrupted().

Referenced by lldb_private::Process::RunPrivateStateThread().

◆ SetRestarted()

void lldb_private::Process::ProcessEventData::SetRestarted ( bool  new_value)
inlineprivate

Definition at line 472 of file Process.h.

References m_restarted.

Referenced by SetRestartedInEvent().

◆ SetRestartedInEvent()

void Process::ProcessEventData::SetRestartedInEvent ( Event event_ptr,
bool  new_value 
)
static

Definition at line 4400 of file Process.cpp.

References SetRestarted().

Referenced by lldb_private::Process::ShouldBroadcastEvent().

◆ SetUpdateStateOnRemoval() [1/2]

void lldb_private::Process::ProcessEventData::SetUpdateStateOnRemoval ( )
inlineprivate

Definition at line 470 of file Process.h.

References m_update_state.

Referenced by lldb_private::Process::HandlePrivateEvent().

◆ SetUpdateStateOnRemoval() [2/2]

bool Process::ProcessEventData::SetUpdateStateOnRemoval ( Event event_ptr)
static

Definition at line 4454 of file Process.cpp.

References SetUpdateStateOnRemoval().

Referenced by SetUpdateStateOnRemoval().

◆ ShouldStop()

bool Process::ProcessEventData::ShouldStop ( Event event_ptr,
bool &  found_valid_stopinfo 
)
virtual

Friends And Related Function Documentation

◆ Process

friend class Process
friend

Definition at line 410 of file Process.h.

Member Data Documentation

◆ m_interrupted

bool lldb_private::Process::ProcessEventData::m_interrupted = false
private

Definition at line 486 of file Process.h.

Referenced by GetInterrupted(), and SetInterrupted().

◆ m_process_wp

lldb::ProcessWP lldb_private::Process::ProcessEventData::m_process_wp
private

Definition at line 480 of file Process.h.

Referenced by GetProcessSP(), and ProcessEventData().

◆ m_restarted

bool lldb_private::Process::ProcessEventData::m_restarted = false
private

Definition at line 483 of file Process.h.

Referenced by GetRestarted(), and SetRestarted().

◆ m_restarted_reasons

std::vector<std::string> lldb_private::Process::ProcessEventData::m_restarted_reasons
private

◆ m_state

lldb::StateType lldb_private::Process::ProcessEventData::m_state = lldb::eStateInvalid
private

Definition at line 481 of file Process.h.

Referenced by GetState().

◆ m_update_state

int lldb_private::Process::ProcessEventData::m_update_state = 0
private

Definition at line 485 of file Process.h.

Referenced by SetUpdateStateOnRemoval().


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