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
 
std::vector< std::string > m_restarted_reasons
 
bool m_restarted
 
int m_update_state
 
bool m_interrupted
 

Friends

class Process
 

Detailed Description

Definition at line 425 of file Process.h.

Constructor & Destructor Documentation

◆ ProcessEventData() [1/3]

Process::ProcessEventData::ProcessEventData ( )

◆ ProcessEventData() [2/3]

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

◆ ~ProcessEventData()

Process::ProcessEventData::~ProcessEventData ( )
overridedefault

Referenced by ProcessEventData().

◆ ProcessEventData() [3/3]

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

Member Function Documentation

◆ AddRestartedReason() [1/2]

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

◆ AddRestartedReason() [2/2]

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

Definition at line 490 of file Process.h.

◆ 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 3998 of file Process.cpp.

References GetFlavorString().

◆ GetFlavorString()

ConstString Process::ProcessEventData::GetFlavorString ( )
static

Definition at line 3993 of file Process.cpp.

Referenced by GetEventDataFromEvent(), and GetFlavor().

◆ GetInterrupted()

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

Definition at line 451 of file Process.h.

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 4236 of file Process.cpp.

References GetEventDataFromEvent(), and GetNumRestartedReasons().

◆ GetProcessFromEvent()

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

◆ GetProcessSP()

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

Definition at line 438 of file Process.h.

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

◆ GetRestarted()

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

Definition at line 441 of file Process.h.

Referenced by DoOnRemoval(), and GetRestartedFromEvent().

◆ GetRestartedFromEvent()

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

◆ GetRestartedReasonAtIndex() [1/2]

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

◆ GetRestartedReasonAtIndex() [2/2]

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

Definition at line 4246 of file Process.cpp.

References GetEventDataFromEvent(), and GetRestartedReasonAtIndex().

◆ GetState()

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

◆ 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 488 of file Process.h.

Referenced by SetInterruptedInEvent().

◆ SetInterruptedInEvent()

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

◆ SetRestarted()

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

Definition at line 486 of file Process.h.

Referenced by DoOnRemoval(), SetRestartedInEvent(), and ShouldStop().

◆ SetRestartedInEvent()

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

Definition at line 4227 of file Process.cpp.

References GetEventDataFromEvent(), and SetRestarted().

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

◆ SetUpdateStateOnRemoval() [1/2]

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

Definition at line 4281 of file Process.cpp.

References GetEventDataFromEvent(), and SetUpdateStateOnRemoval().

Referenced by SetUpdateStateOnRemoval().

◆ SetUpdateStateOnRemoval() [2/2]

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

Definition at line 484 of file Process.h.

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

◆ 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 426 of file Process.h.

Member Data Documentation

◆ m_interrupted

bool lldb_private::Process::ProcessEventData::m_interrupted
private

Definition at line 500 of file Process.h.

Referenced by DoOnRemoval(), and ProcessEventData().

◆ m_process_wp

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

Definition at line 494 of file Process.h.

Referenced by DoOnRemoval(), Dump(), ProcessEventData(), and ShouldStop().

◆ m_restarted

bool lldb_private::Process::ProcessEventData::m_restarted
private

Definition at line 497 of file Process.h.

Referenced by DoOnRemoval(), and ProcessEventData().

◆ m_restarted_reasons

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

Definition at line 496 of file Process.h.

◆ m_state

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

Definition at line 495 of file Process.h.

Referenced by DoOnRemoval(), and ProcessEventData().

◆ m_update_state

int lldb_private::Process::ProcessEventData::m_update_state
private

Definition at line 499 of file Process.h.

Referenced by DoOnRemoval(), and ProcessEventData().


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