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]
Collaboration diagram for lldb_private::Process::ProcessEventData:
Collaboration graph
[legend]

Public Member Functions

 ProcessEventData ()
 
 ProcessEventData (const lldb::ProcessSP &process, lldb::StateType state)
 
 ~ProcessEventData () override
 
ConstString 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 ()
 

Static Public Member Functions

static ConstString 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

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::stringm_restarted_reasons
 
bool m_restarted = false
 
int m_update_state = 0
 
bool m_interrupted = false
 

Friends

class Process
 

Detailed Description

Definition at line 403 of file Process.h.

Constructor & Destructor Documentation

◆ ProcessEventData() [1/3]

Process::ProcessEventData::ProcessEventData ( )

Definition at line 3895 of file Process.cpp.

◆ ProcessEventData() [2/3]

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

◆ ~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 468 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

◆ GetEventDataFromEvent()

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

◆ GetFlavor()

ConstString Process::ProcessEventData::GetFlavor ( ) const
overridevirtual

Implements lldb_private::EventData.

Definition at line 3912 of file Process.cpp.

References GetFlavorString().

◆ GetFlavorString()

ConstString Process::ProcessEventData::GetFlavorString ( )
static

Definition at line 3907 of file Process.cpp.

Referenced by GetEventDataFromEvent(), and GetFlavor().

◆ GetInterrupted()

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

Definition at line 429 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 4149 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 416 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 419 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 4159 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 418 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 466 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 4186 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 464 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 4140 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 462 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 4194 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 404 of file Process.h.

Member Data Documentation

◆ m_interrupted

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

Definition at line 478 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 472 of file Process.h.

Referenced by GetProcessSP().

◆ m_restarted

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

Definition at line 475 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 473 of file Process.h.

Referenced by GetState().

◆ m_update_state

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

Definition at line 477 of file Process.h.

Referenced by SetUpdateStateOnRemoval().


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