| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 1 | //===-- POSIXStopInfo.cpp ---------------------------------------*- C++ -*-===// |
| 2 | // |
| Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame^] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "POSIXStopInfo.h" |
| 10 | |
| 11 | using namespace lldb; |
| 12 | using namespace lldb_private; |
| 13 | |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 14 | //===----------------------------------------------------------------------===// |
| 15 | // POSIXLimboStopInfo |
| 16 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 17 | POSIXLimboStopInfo::~POSIXLimboStopInfo() {} |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 18 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 19 | lldb::StopReason POSIXLimboStopInfo::GetStopReason() const { |
| 20 | return lldb::eStopReasonThreadExiting; |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 21 | } |
| 22 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 23 | const char *POSIXLimboStopInfo::GetDescription() { return "thread exiting"; } |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 24 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 25 | bool POSIXLimboStopInfo::ShouldStop(Event *event_ptr) { return false; } |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 26 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 27 | bool POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) { return false; } |
| Johnny Chen | 9ed5b49 | 2012-01-05 21:48:15 +0000 | [diff] [blame] | 28 | |
| 29 | //===----------------------------------------------------------------------===// |
| Matt Kopec | 650648f | 2013-01-08 16:30:18 +0000 | [diff] [blame] | 30 | // POSIXNewThreadStopInfo |
| 31 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 32 | POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() {} |
| Matt Kopec | 650648f | 2013-01-08 16:30:18 +0000 | [diff] [blame] | 33 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 34 | lldb::StopReason POSIXNewThreadStopInfo::GetStopReason() const { |
| 35 | return lldb::eStopReasonNone; |
| Matt Kopec | 650648f | 2013-01-08 16:30:18 +0000 | [diff] [blame] | 36 | } |
| 37 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 38 | const char *POSIXNewThreadStopInfo::GetDescription() { |
| 39 | return "thread spawned"; |
| Matt Kopec | 650648f | 2013-01-08 16:30:18 +0000 | [diff] [blame] | 40 | } |
| 41 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 42 | bool POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr) { return false; } |
| Matt Kopec | 650648f | 2013-01-08 16:30:18 +0000 | [diff] [blame] | 43 | |
| Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 44 | bool POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr) { return false; } |