1 //===-- ProcessMessage.cpp --------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "ProcessMessage.h"
12 using namespace lldb_private;
14 const char *ProcessMessage::PrintCrashReason() const {
15 return CrashReasonAsString(m_crash_reason);
18 const char *ProcessMessage::PrintKind(Kind kind) {
19 #ifdef LLDB_CONFIGURATION_BUILDANDINTEGRATION
20 // Just return the code in ascii for integration builds.
22 sprintf(str, "%d", reason);
24 const char *str = NULL;
28 str = "eInvalidMessage";
31 str = "eAttachMessage";
37 str = "eLimboMessage";
40 str = "eSignalMessage";
42 case eSignalDeliveredMessage:
43 str = "eSignalDeliveredMessage";
46 str = "eTraceMessage";
48 case eBreakpointMessage:
49 str = "eBreakpointMessage";
51 case eWatchpointMessage:
52 str = "eWatchpointMessage";
55 str = "eCrashMessage";
57 case eNewThreadMessage:
58 str = "eNewThreadMessage";
69 const char *ProcessMessage::PrintKind() const { return PrintKind(m_kind); }