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;
15 //===----------------------------------------------------------------------===//
18 POSIXLimboStopInfo::~POSIXLimboStopInfo() {}
20 lldb::StopReason POSIXLimboStopInfo::GetStopReason() const {
21 return lldb::eStopReasonThreadExiting;
24 const char *POSIXLimboStopInfo::GetDescription() { return "thread exiting"; }
26 bool POSIXLimboStopInfo::ShouldStop(Event *event_ptr) { return false; }
28 bool POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) { return false; }
30 //===----------------------------------------------------------------------===//
33 POSIXCrashStopInfo::POSIXCrashStopInfo(FreeBSDThread &thread, uint32_t status,
35 lldb::addr_t fault_addr)
36 : POSIXStopInfo(thread, status) {
37 m_description = ::GetCrashReasonString(reason, fault_addr);
40 POSIXCrashStopInfo::~POSIXCrashStopInfo() {}
42 lldb::StopReason POSIXCrashStopInfo::GetStopReason() const {
43 return lldb::eStopReasonException;
46 //===----------------------------------------------------------------------===//
47 // POSIXNewThreadStopInfo
49 POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() {}
51 lldb::StopReason POSIXNewThreadStopInfo::GetStopReason() const {
52 return lldb::eStopReasonNone;
55 const char *POSIXNewThreadStopInfo::GetDescription() {
56 return "thread spawned";
59 bool POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr) { return false; }
61 bool POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr) { return false; }