blob: b9765b6997c278597ad06be375dbc3f1ab37d618 [file] [log] [blame]
Johnny Chen2341d352012-01-05 21:48:15 +00001//===-- 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
12using namespace lldb;
13using namespace lldb_private;
14
15
16//===----------------------------------------------------------------------===//
17// POSIXLimboStopInfo
18
19POSIXLimboStopInfo::~POSIXLimboStopInfo() { }
20
21lldb::StopReason
22POSIXLimboStopInfo::GetStopReason() const
23{
Andrew Kaylor278f16e2012-12-20 23:08:03 +000024 return lldb::eStopReasonThreadExiting;
Johnny Chen2341d352012-01-05 21:48:15 +000025}
26
27const char *
28POSIXLimboStopInfo::GetDescription()
29{
30 return "thread exiting";
31}
32
33bool
34POSIXLimboStopInfo::ShouldStop(Event *event_ptr)
35{
Andrew Kaylor278f16e2012-12-20 23:08:03 +000036 return false;
Johnny Chen2341d352012-01-05 21:48:15 +000037}
38
39bool
40POSIXLimboStopInfo::ShouldNotify(Event *event_ptr)
41{
Andrew Kaylor278f16e2012-12-20 23:08:03 +000042 return false;
Johnny Chen2341d352012-01-05 21:48:15 +000043}
44
45//===----------------------------------------------------------------------===//
46// POSIXCrashStopInfo
47
48POSIXCrashStopInfo::~POSIXCrashStopInfo() { }
49
50lldb::StopReason
51POSIXCrashStopInfo::GetStopReason() const
52{
53 return lldb::eStopReasonException;
54}
55
56const char *
57POSIXCrashStopInfo::GetDescription()
58{
59 return ProcessMessage::GetCrashReasonString(m_crash_reason);
60}
Matt Kopecf1fda372013-01-08 16:30:18 +000061
62//===----------------------------------------------------------------------===//
63// POSIXNewThreadStopInfo
64
65POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() { }
66
67lldb::StopReason
68POSIXNewThreadStopInfo::GetStopReason() const
69{
70 return lldb::eStopReasonNone;
71}
72
73const char *
74POSIXNewThreadStopInfo::GetDescription()
75{
76 return "thread spawned";
77}
78
79bool
80POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr)
81{
82 return false;
83}
84
85bool
86POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr)
87{
88 return false;
89}