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 ~POSIXLimboStopInfo()19POSIXLimboStopInfo::~POSIXLimboStopInfo() { } 20 21 lldb::StopReason GetStopReason() const22POSIXLimboStopInfo::GetStopReason() const 23 { 24 return lldb::eStopReasonThreadExiting; 25 } 26 27 const char * GetDescription()28POSIXLimboStopInfo::GetDescription() 29 { 30 return "thread exiting"; 31 } 32 33 bool ShouldStop(Event * event_ptr)34POSIXLimboStopInfo::ShouldStop(Event *event_ptr) 35 { 36 return false; 37 } 38 39 bool ShouldNotify(Event * event_ptr)40POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) 41 { 42 return false; 43 } 44 45 //===----------------------------------------------------------------------===// 46 // POSIXCrashStopInfo 47 ~POSIXCrashStopInfo()48POSIXCrashStopInfo::~POSIXCrashStopInfo() { } 49 50 lldb::StopReason GetStopReason() const51POSIXCrashStopInfo::GetStopReason() const 52 { 53 return lldb::eStopReasonException; 54 } 55 56 const char * GetDescription()57POSIXCrashStopInfo::GetDescription() 58 { 59 return ProcessMessage::GetCrashReasonString(m_crash_reason, m_fault_addr); 60 } 61 62 //===----------------------------------------------------------------------===// 63 // POSIXNewThreadStopInfo 64 ~POSIXNewThreadStopInfo()65POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() { } 66 67 lldb::StopReason GetStopReason() const68POSIXNewThreadStopInfo::GetStopReason() const 69 { 70 return lldb::eStopReasonNone; 71 } 72 73 const char * GetDescription()74POSIXNewThreadStopInfo::GetDescription() 75 { 76 return "thread spawned"; 77 } 78 79 bool ShouldStop(Event * event_ptr)80POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr) 81 { 82 return false; 83 } 84 85 bool ShouldNotify(Event * event_ptr)86POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr) 87 { 88 return false; 89 } 90