diff options
author | 2020-08-03 14:33:06 +0000 | |
---|---|---|
committer | 2020-08-03 14:33:06 +0000 | |
commit | 061da546b983eb767bad15e67af1174fb0bcf31c (patch) | |
tree | 83c78b820819d70aa40c36d90447978b300078c5 /gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp | |
parent | Import LLVM 10.0.0 release including clang, lld and lldb. (diff) | |
download | wireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.tar.xz wireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.zip |
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom
tested by plenty
Diffstat (limited to 'gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp')
-rw-r--r-- | gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp b/gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp new file mode 100644 index 00000000000..66286dd3d9e --- /dev/null +++ b/gnu/llvm/lldb/source/Plugins/Process/POSIX/ProcessMessage.cpp @@ -0,0 +1,61 @@ +//===-- ProcessMessage.cpp --------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#include "ProcessMessage.h" + +using namespace lldb_private; + +const char *ProcessMessage::PrintCrashReason() const { + return CrashReasonAsString(m_crash_reason); +} + +const char *ProcessMessage::PrintKind(Kind kind) { + const char *str = nullptr; + + switch (kind) { + case eInvalidMessage: + str = "eInvalidMessage"; + break; + case eAttachMessage: + str = "eAttachMessage"; + break; + case eExitMessage: + str = "eExitMessage"; + break; + case eLimboMessage: + str = "eLimboMessage"; + break; + case eSignalMessage: + str = "eSignalMessage"; + break; + case eSignalDeliveredMessage: + str = "eSignalDeliveredMessage"; + break; + case eTraceMessage: + str = "eTraceMessage"; + break; + case eBreakpointMessage: + str = "eBreakpointMessage"; + break; + case eWatchpointMessage: + str = "eWatchpointMessage"; + break; + case eCrashMessage: + str = "eCrashMessage"; + break; + case eNewThreadMessage: + str = "eNewThreadMessage"; + break; + case eExecMessage: + str = "eExecMessage"; + break; + } + return str; +} + +const char *ProcessMessage::PrintKind() const { return PrintKind(m_kind); } |