blob: 71f012944a9a875a8d0bb7abca172c2886478423 [file] [log] [blame]
Johnny Chen9ed5b492012-01-05 21:48:15 +00001//===-- POSIXStopInfo.cpp ---------------------------------------*- C++ -*-===//
2//
Chandler Carruth2946cd72019-01-19 08:50:56 +00003// 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 Chen9ed5b492012-01-05 21:48:15 +00006//
7//===----------------------------------------------------------------------===//
8
9#include "POSIXStopInfo.h"
10
11using namespace lldb;
12using namespace lldb_private;
13
Johnny Chen9ed5b492012-01-05 21:48:15 +000014//===----------------------------------------------------------------------===//
15// POSIXLimboStopInfo
16
Kate Stoneb9c1b512016-09-06 20:57:50 +000017POSIXLimboStopInfo::~POSIXLimboStopInfo() {}
Johnny Chen9ed5b492012-01-05 21:48:15 +000018
Kate Stoneb9c1b512016-09-06 20:57:50 +000019lldb::StopReason POSIXLimboStopInfo::GetStopReason() const {
20 return lldb::eStopReasonThreadExiting;
Johnny Chen9ed5b492012-01-05 21:48:15 +000021}
22
Kate Stoneb9c1b512016-09-06 20:57:50 +000023const char *POSIXLimboStopInfo::GetDescription() { return "thread exiting"; }
Johnny Chen9ed5b492012-01-05 21:48:15 +000024
Kate Stoneb9c1b512016-09-06 20:57:50 +000025bool POSIXLimboStopInfo::ShouldStop(Event *event_ptr) { return false; }
Johnny Chen9ed5b492012-01-05 21:48:15 +000026
Kate Stoneb9c1b512016-09-06 20:57:50 +000027bool POSIXLimboStopInfo::ShouldNotify(Event *event_ptr) { return false; }
Johnny Chen9ed5b492012-01-05 21:48:15 +000028
29//===----------------------------------------------------------------------===//
Matt Kopec650648f2013-01-08 16:30:18 +000030// POSIXNewThreadStopInfo
31
Kate Stoneb9c1b512016-09-06 20:57:50 +000032POSIXNewThreadStopInfo::~POSIXNewThreadStopInfo() {}
Matt Kopec650648f2013-01-08 16:30:18 +000033
Kate Stoneb9c1b512016-09-06 20:57:50 +000034lldb::StopReason POSIXNewThreadStopInfo::GetStopReason() const {
35 return lldb::eStopReasonNone;
Matt Kopec650648f2013-01-08 16:30:18 +000036}
37
Kate Stoneb9c1b512016-09-06 20:57:50 +000038const char *POSIXNewThreadStopInfo::GetDescription() {
39 return "thread spawned";
Matt Kopec650648f2013-01-08 16:30:18 +000040}
41
Kate Stoneb9c1b512016-09-06 20:57:50 +000042bool POSIXNewThreadStopInfo::ShouldStop(Event *event_ptr) { return false; }
Matt Kopec650648f2013-01-08 16:30:18 +000043
Kate Stoneb9c1b512016-09-06 20:57:50 +000044bool POSIXNewThreadStopInfo::ShouldNotify(Event *event_ptr) { return false; }