Deleted Added
full compact
ProcessMessage.h (254729) ProcessMessage.h (258054)
1//===-- ProcessMessage.h ----------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 9 unchanged lines hidden (view full) ---

18class ProcessMessage
19{
20public:
21
22 /// The type of signal this message can correspond to.
23 enum Kind
24 {
25 eInvalidMessage,
1//===-- ProcessMessage.h ----------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 9 unchanged lines hidden (view full) ---

18class ProcessMessage
19{
20public:
21
22 /// The type of signal this message can correspond to.
23 enum Kind
24 {
25 eInvalidMessage,
26 eAttachMessage,
26 eExitMessage,
27 eLimboMessage,
28 eSignalMessage,
29 eSignalDeliveredMessage,
30 eTraceMessage,
31 eBreakpointMessage,
32 eWatchpointMessage,
33 eCrashMessage,
27 eExitMessage,
28 eLimboMessage,
29 eSignalMessage,
30 eSignalDeliveredMessage,
31 eTraceMessage,
32 eBreakpointMessage,
33 eWatchpointMessage,
34 eCrashMessage,
34 eNewThreadMessage
35 eNewThreadMessage,
36 eExecMessage
35 };
36
37 enum CrashReason
38 {
39 eInvalidCrashReason,
40
41 // SIGSEGV crash reasons.
42 eInvalidAddress,

--- 31 unchanged lines hidden (view full) ---

74 m_crash_reason(eInvalidCrashReason),
75 m_status(0),
76 m_addr(0) { }
77
78 Kind GetKind() const { return m_kind; }
79
80 lldb::tid_t GetTID() const { return m_tid; }
81
37 };
38
39 enum CrashReason
40 {
41 eInvalidCrashReason,
42
43 // SIGSEGV crash reasons.
44 eInvalidAddress,

--- 31 unchanged lines hidden (view full) ---

76 m_crash_reason(eInvalidCrashReason),
77 m_status(0),
78 m_addr(0) { }
79
80 Kind GetKind() const { return m_kind; }
81
82 lldb::tid_t GetTID() const { return m_tid; }
83
84 /// Indicates that the process @p pid has successfully attached.
85 static ProcessMessage Attach(lldb::pid_t pid) {
86 return ProcessMessage(pid, eAttachMessage);
87 }
88
82 /// Indicates that the thread @p tid is about to exit with status @p status.
83 static ProcessMessage Limbo(lldb::tid_t tid, int status) {
84 return ProcessMessage(tid, eLimboMessage, status);
85 }
86
87 /// Indicates that the thread @p tid had the signal @p signum delivered.
88 static ProcessMessage Signal(lldb::tid_t tid, int signum) {
89 return ProcessMessage(tid, eSignalMessage, signum);

--- 32 unchanged lines hidden (view full) ---

122 return ProcessMessage(parent_tid, eNewThreadMessage, child_tid);
123 }
124
125 /// Indicates that the thread @p tid is about to exit with status @p status.
126 static ProcessMessage Exit(lldb::tid_t tid, int status) {
127 return ProcessMessage(tid, eExitMessage, status);
128 }
129
89 /// Indicates that the thread @p tid is about to exit with status @p status.
90 static ProcessMessage Limbo(lldb::tid_t tid, int status) {
91 return ProcessMessage(tid, eLimboMessage, status);
92 }
93
94 /// Indicates that the thread @p tid had the signal @p signum delivered.
95 static ProcessMessage Signal(lldb::tid_t tid, int signum) {
96 return ProcessMessage(tid, eSignalMessage, signum);

--- 32 unchanged lines hidden (view full) ---

129 return ProcessMessage(parent_tid, eNewThreadMessage, child_tid);
130 }
131
132 /// Indicates that the thread @p tid is about to exit with status @p status.
133 static ProcessMessage Exit(lldb::tid_t tid, int status) {
134 return ProcessMessage(tid, eExitMessage, status);
135 }
136
137 /// Indicates that the thread @p pid has exec'd.
138 static ProcessMessage Exec(lldb::tid_t tid) {
139 return ProcessMessage(tid, eExecMessage);
140 }
141
130 int GetExitStatus() const {
131 assert(GetKind() == eExitMessage || GetKind() == eLimboMessage);
132 return m_status;
133 }
134
135 int GetSignal() const {
136 assert(GetKind() == eSignalMessage || GetKind() == eCrashMessage ||
137 GetKind() == eSignalDeliveredMessage);

--- 70 unchanged lines hidden ---
142 int GetExitStatus() const {
143 assert(GetKind() == eExitMessage || GetKind() == eLimboMessage);
144 return m_status;
145 }
146
147 int GetSignal() const {
148 assert(GetKind() == eSignalMessage || GetKind() == eCrashMessage ||
149 GetKind() == eSignalDeliveredMessage);

--- 70 unchanged lines hidden ---