]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/POSIXStopInfo.cpp
Update lldb to trunk r290819 and resolve conflicts.
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / Process / FreeBSD / POSIXStopInfo.cpp
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 // POSIXLimboStopInfo
17
18 POSIXLimboStopInfo::~POSIXLimboStopInfo() {}
19
20 lldb::StopReason POSIXLimboStopInfo::GetStopReason() const {
21   return lldb::eStopReasonThreadExiting;
22 }
23
24 const char *POSIXLimboStopInfo::GetDescription() { return "thread exiting"; }
25
26 bool POSIXLimboStopInfo::ShouldStop(Event *event_ptr) { return false; }
27
28 bool POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) { return false; }
29
30 //===----------------------------------------------------------------------===//
31 // POSIXCrashStopInfo
32
33 POSIXCrashStopInfo::POSIXCrashStopInfo(FreeBSDThread &thread, uint32_t status,
34                                        CrashReason reason,
35                                        lldb::addr_t fault_addr)
36     : POSIXStopInfo(thread, status) {
37   m_description = ::GetCrashReasonString(reason, fault_addr);
38 }
39
40 POSIXCrashStopInfo::~POSIXCrashStopInfo() {}
41
42 lldb::StopReason POSIXCrashStopInfo::GetStopReason() const {
43   return lldb::eStopReasonException;
44 }
45
46 //===----------------------------------------------------------------------===//
47 // POSIXNewThreadStopInfo
48
49 POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() {}
50
51 lldb::StopReason POSIXNewThreadStopInfo::GetStopReason() const {
52   return lldb::eStopReasonNone;
53 }
54
55 const char *POSIXNewThreadStopInfo::GetDescription() {
56   return "thread spawned";
57 }
58
59 bool POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr) { return false; }
60
61 bool POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr) { return false; }