Johnny Chen | 2341d35 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 1 | //===-- POSIXStopInfo.cpp ---------------------------------------*- 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 | |
| 10 | #include "POSIXStopInfo.h" |
| 11 | |
| 12 | using namespace lldb; |
| 13 | using namespace lldb_private; |
| 14 | |
| 15 | |
| 16 | //===----------------------------------------------------------------------===// |
| 17 | // POSIXLimboStopInfo |
| 18 | |
| 19 | POSIXLimboStopInfo::~POSIXLimboStopInfo() { } |
| 20 | |
| 21 | lldb::StopReason |
| 22 | POSIXLimboStopInfo::GetStopReason() const |
| 23 | { |
Andrew Kaylor | 278f16e | 2012-12-20 23:08:03 +0000 | [diff] [blame] | 24 | return lldb::eStopReasonThreadExiting; |
Johnny Chen | 2341d35 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | const char * |
| 28 | POSIXLimboStopInfo::GetDescription() |
| 29 | { |
| 30 | return "thread exiting"; |
| 31 | } |
| 32 | |
| 33 | bool |
| 34 | POSIXLimboStopInfo::ShouldStop(Event *event_ptr) |
| 35 | { |
Andrew Kaylor | 278f16e | 2012-12-20 23:08:03 +0000 | [diff] [blame] | 36 | return false; |
Johnny Chen | 2341d35 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | bool |
| 40 | POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) |
| 41 | { |
Andrew Kaylor | 278f16e | 2012-12-20 23:08:03 +0000 | [diff] [blame] | 42 | return false; |
Johnny Chen | 2341d35 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | //===----------------------------------------------------------------------===// |
| 46 | // POSIXCrashStopInfo |
| 47 | |
| 48 | POSIXCrashStopInfo::~POSIXCrashStopInfo() { } |
| 49 | |
| 50 | lldb::StopReason |
| 51 | POSIXCrashStopInfo::GetStopReason() const |
| 52 | { |
| 53 | return lldb::eStopReasonException; |
| 54 | } |
| 55 | |
| 56 | const char * |
| 57 | POSIXCrashStopInfo::GetDescription() |
| 58 | { |
| 59 | return ProcessMessage::GetCrashReasonString(m_crash_reason); |
| 60 | } |