1 //===-- POSIXStopInfo.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 "POSIXStopInfo.h"
13 using namespace lldb_private;
16 //===----------------------------------------------------------------------===//
19 POSIXLimboStopInfo::~POSIXLimboStopInfo() { }
22 POSIXLimboStopInfo::GetStopReason() const
24 return lldb::eStopReasonThreadExiting;
28 POSIXLimboStopInfo::GetDescription()
30 return "thread exiting";
34 POSIXLimboStopInfo::ShouldStop(Event *event_ptr)
40 POSIXLimboStopInfo::ShouldNotify(Event *event_ptr)
45 //===----------------------------------------------------------------------===//
48 POSIXCrashStopInfo::POSIXCrashStopInfo(POSIXThread &thread,
51 lldb::addr_t fault_addr)
52 : POSIXStopInfo(thread, status)
54 m_description = ::GetCrashReasonString(reason, fault_addr);
57 POSIXCrashStopInfo::~POSIXCrashStopInfo() { }
60 POSIXCrashStopInfo::GetStopReason() const
62 return lldb::eStopReasonException;
65 //===----------------------------------------------------------------------===//
66 // POSIXNewThreadStopInfo
68 POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() { }
71 POSIXNewThreadStopInfo::GetStopReason() const
73 return lldb::eStopReasonNone;
77 POSIXNewThreadStopInfo::GetDescription()
79 return "thread spawned";
83 POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr)
89 POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr)