LLDB  mainline
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ProcessMessage Class Reference

#include <ProcessMessage.h>

Collaboration diagram for ProcessMessage:
Collaboration graph
[legend]

Public Types

enum  Kind {
  eInvalidMessage, eAttachMessage, eExitMessage, eLimboMessage,
  eSignalMessage, eSignalDeliveredMessage, eTraceMessage, eBreakpointMessage,
  eWatchpointMessage, eCrashMessage, eNewThreadMessage, eExecMessage
}
 The type of signal this message can correspond to. More...
 

Public Member Functions

 ProcessMessage ()
 
Kind GetKind () const
 
lldb::tid_t GetTID () const
 
int GetExitStatus () const
 
int GetSignal () const
 
int GetStopStatus () const
 
CrashReason GetCrashReason () const
 
lldb::addr_t GetFaultAddress () const
 
lldb::addr_t GetHWAddress () const
 
lldb::tid_t GetChildTID () const
 
const char * PrintCrashReason () const
 
const char * PrintKind () const
 

Static Public Member Functions

static ProcessMessage Attach (lldb::pid_t pid)
 Indicates that the process pid has successfully attached. More...
 
static ProcessMessage Limbo (lldb::tid_t tid, int status)
 Indicates that the thread tid is about to exit with status status. More...
 
static ProcessMessage Signal (lldb::tid_t tid, int signum)
 Indicates that the thread tid had the signal signum delivered. More...
 
static ProcessMessage SignalDelivered (lldb::tid_t tid, int signum)
 Indicates that a signal signum generated by the debugging process was delivered to the thread tid. More...
 
static ProcessMessage Trace (lldb::tid_t tid)
 Indicates that the thread tid encountered a trace point. More...
 
static ProcessMessage Break (lldb::tid_t tid)
 Indicates that the thread tid encountered a break point. More...
 
static ProcessMessage Watch (lldb::tid_t tid, lldb::addr_t wp_addr)
 
static ProcessMessage Crash (lldb::pid_t pid, CrashReason reason, int signo, lldb::addr_t fault_addr)
 Indicates that the thread tid crashed. More...
 
static ProcessMessage NewThread (lldb::tid_t parent_tid, lldb::tid_t child_tid)
 Indicates that the thread child_tid was spawned. More...
 
static ProcessMessage Exit (lldb::tid_t tid, int status)
 Indicates that the thread tid is about to exit with status status. More...
 
static ProcessMessage Exec (lldb::tid_t tid)
 Indicates that the thread pid has exec'd. More...
 
static const char * PrintKind (Kind)
 

Private Member Functions

 ProcessMessage (lldb::tid_t tid, Kind kind, int status=0, lldb::addr_t addr=0)
 
 ProcessMessage (lldb::tid_t tid, Kind kind, lldb::tid_t child_tid)
 

Private Attributes

lldb::tid_t m_tid
 
Kind m_kind: 8
 
CrashReason m_crash_reason
 
int m_status
 
lldb::addr_t m_addr
 
lldb::tid_t m_child_tid
 

Detailed Description

Definition at line 20 of file ProcessMessage.h.

Member Enumeration Documentation

◆ Kind

The type of signal this message can correspond to.

Enumerator
eInvalidMessage 
eAttachMessage 
eExitMessage 
eLimboMessage 
eSignalMessage 
eSignalDeliveredMessage 
eTraceMessage 
eBreakpointMessage 
eWatchpointMessage 
eCrashMessage 
eNewThreadMessage 
eExecMessage 

Definition at line 23 of file ProcessMessage.h.

Constructor & Destructor Documentation

◆ ProcessMessage() [1/3]

ProcessMessage::ProcessMessage ( )
inline

Definition at line 38 of file ProcessMessage.h.

Referenced by Attach(), Break(), Exec(), Exit(), Limbo(), NewThread(), Signal(), SignalDelivered(), Trace(), and Watch().

◆ ProcessMessage() [2/3]

ProcessMessage::ProcessMessage ( lldb::tid_t  tid,
Kind  kind,
int  status = 0,
lldb::addr_t  addr = 0 
)
inlineprivate

Definition at line 149 of file ProcessMessage.h.

◆ ProcessMessage() [3/3]

ProcessMessage::ProcessMessage ( lldb::tid_t  tid,
Kind  kind,
lldb::tid_t  child_tid 
)
inlineprivate

Definition at line 155 of file ProcessMessage.h.

Member Function Documentation

◆ Attach()

static ProcessMessage ProcessMessage::Attach ( lldb::pid_t  pid)
inlinestatic

Indicates that the process pid has successfully attached.

Definition at line 48 of file ProcessMessage.h.

References eAttachMessage, and ProcessMessage().

◆ Break()

static ProcessMessage ProcessMessage::Break ( lldb::tid_t  tid)
inlinestatic

Indicates that the thread tid encountered a break point.

Definition at line 74 of file ProcessMessage.h.

References eBreakpointMessage, and ProcessMessage().

◆ Crash()

static ProcessMessage ProcessMessage::Crash ( lldb::pid_t  pid,
CrashReason  reason,
int  signo,
lldb::addr_t  fault_addr 
)
inlinestatic

Indicates that the thread tid crashed.

Definition at line 83 of file ProcessMessage.h.

References eCrashMessage, and message().

◆ Exec()

static ProcessMessage ProcessMessage::Exec ( lldb::tid_t  tid)
inlinestatic

Indicates that the thread pid has exec'd.

Definition at line 102 of file ProcessMessage.h.

References eExecMessage, and ProcessMessage().

◆ Exit()

static ProcessMessage ProcessMessage::Exit ( lldb::tid_t  tid,
int  status 
)
inlinestatic

Indicates that the thread tid is about to exit with status status.

Definition at line 97 of file ProcessMessage.h.

References eExitMessage, and ProcessMessage().

◆ GetChildTID()

lldb::tid_t ProcessMessage::GetChildTID ( ) const
inline

Definition at line 137 of file ProcessMessage.h.

References eNewThreadMessage, GetKind(), and m_child_tid.

◆ GetCrashReason()

CrashReason ProcessMessage::GetCrashReason ( ) const
inline

Definition at line 122 of file ProcessMessage.h.

References eCrashMessage, GetKind(), and m_crash_reason.

◆ GetExitStatus()

int ProcessMessage::GetExitStatus ( ) const
inline

Definition at line 106 of file ProcessMessage.h.

References eExitMessage, eLimboMessage, GetKind(), and m_status.

◆ GetFaultAddress()

lldb::addr_t ProcessMessage::GetFaultAddress ( ) const
inline

Definition at line 127 of file ProcessMessage.h.

References eCrashMessage, GetKind(), and m_addr.

◆ GetHWAddress()

lldb::addr_t ProcessMessage::GetHWAddress ( ) const
inline

Definition at line 132 of file ProcessMessage.h.

References eTraceMessage, eWatchpointMessage, GetKind(), and m_addr.

◆ GetKind()

Kind ProcessMessage::GetKind ( ) const
inline

◆ GetSignal()

int ProcessMessage::GetSignal ( ) const
inline

◆ GetStopStatus()

int ProcessMessage::GetStopStatus ( ) const
inline

Definition at line 117 of file ProcessMessage.h.

References eSignalMessage, GetKind(), and m_status.

◆ GetTID()

lldb::tid_t ProcessMessage::GetTID ( ) const
inline

Definition at line 45 of file ProcessMessage.h.

References m_tid.

◆ Limbo()

static ProcessMessage ProcessMessage::Limbo ( lldb::tid_t  tid,
int  status 
)
inlinestatic

Indicates that the thread tid is about to exit with status status.

Definition at line 53 of file ProcessMessage.h.

References eLimboMessage, and ProcessMessage().

◆ NewThread()

static ProcessMessage ProcessMessage::NewThread ( lldb::tid_t  parent_tid,
lldb::tid_t  child_tid 
)
inlinestatic

Indicates that the thread child_tid was spawned.

Definition at line 91 of file ProcessMessage.h.

References eNewThreadMessage, and ProcessMessage().

◆ PrintCrashReason()

const char * ProcessMessage::PrintCrashReason ( ) const

Definition at line 13 of file ProcessMessage.cpp.

References CrashReasonAsString().

◆ PrintKind() [1/2]

const char * ProcessMessage::PrintKind ( ) const

Definition at line 61 of file ProcessMessage.cpp.

◆ PrintKind() [2/2]

const char * ProcessMessage::PrintKind ( Kind  kind)
static

Definition at line 17 of file ProcessMessage.cpp.

◆ Signal()

static ProcessMessage ProcessMessage::Signal ( lldb::tid_t  tid,
int  signum 
)
inlinestatic

Indicates that the thread tid had the signal signum delivered.

Definition at line 58 of file ProcessMessage.h.

References eSignalMessage, and ProcessMessage().

◆ SignalDelivered()

static ProcessMessage ProcessMessage::SignalDelivered ( lldb::tid_t  tid,
int  signum 
)
inlinestatic

Indicates that a signal signum generated by the debugging process was delivered to the thread tid.

Definition at line 64 of file ProcessMessage.h.

References eSignalDeliveredMessage, and ProcessMessage().

◆ Trace()

static ProcessMessage ProcessMessage::Trace ( lldb::tid_t  tid)
inlinestatic

Indicates that the thread tid encountered a trace point.

Definition at line 69 of file ProcessMessage.h.

References eTraceMessage, and ProcessMessage().

◆ Watch()

static ProcessMessage ProcessMessage::Watch ( lldb::tid_t  tid,
lldb::addr_t  wp_addr 
)
inlinestatic

Definition at line 78 of file ProcessMessage.h.

References eWatchpointMessage, and ProcessMessage().

Member Data Documentation

◆ m_addr

lldb::addr_t ProcessMessage::m_addr
private

Definition at line 164 of file ProcessMessage.h.

Referenced by GetFaultAddress(), and GetHWAddress().

◆ m_child_tid

lldb::tid_t ProcessMessage::m_child_tid
private

Definition at line 165 of file ProcessMessage.h.

Referenced by GetChildTID().

◆ m_crash_reason

CrashReason ProcessMessage::m_crash_reason
private

Definition at line 162 of file ProcessMessage.h.

Referenced by GetCrashReason().

◆ m_kind

Kind ProcessMessage::m_kind
private

Definition at line 161 of file ProcessMessage.h.

Referenced by GetKind().

◆ m_status

int ProcessMessage::m_status
private

Definition at line 163 of file ProcessMessage.h.

Referenced by GetExitStatus(), GetSignal(), and GetStopStatus().

◆ m_tid

lldb::tid_t ProcessMessage::m_tid
private

Definition at line 160 of file ProcessMessage.h.

Referenced by GetTID().


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