LLDB  mainline
POSIXStopInfo.h
Go to the documentation of this file.
1 //===-- POSIXStopInfo.h -----------------------------------------*- C++ -*-===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef liblldb_POSIXStopInfo_H_
10 #define liblldb_POSIXStopInfo_H_
11 
12 #include "FreeBSDThread.h"
14 #include "lldb/Target/StopInfo.h"
15 #include <string>
16 
17 //===----------------------------------------------------------------------===//
18 /// \class POSIXStopInfo
19 /// Simple base class for all POSIX-specific StopInfo objects.
20 ///
22 public:
24  : StopInfo(thread, status) {}
25 };
26 
27 //===----------------------------------------------------------------------===//
28 /// \class POSIXLimboStopInfo
29 /// Represents the stop state of a process ready to exit.
30 ///
32 public:
34 
36 
37  lldb::StopReason GetStopReason() const override;
38 
39  const char *GetDescription() override;
40 
41  bool ShouldStop(lldb_private::Event *event_ptr) override;
42 
43  bool ShouldNotify(lldb_private::Event *event_ptr) override;
44 };
45 
46 //===----------------------------------------------------------------------===//
47 /// \class POSIXNewThreadStopInfo
48 /// Represents the stop state of process when a new thread is spawned.
49 ///
50 
52 public:
54 
56 
57  lldb::StopReason GetStopReason() const override;
58 
59  const char *GetDescription() override;
60 
61  bool ShouldStop(lldb_private::Event *event_ptr) override;
62 
63  bool ShouldNotify(lldb_private::Event *event_ptr) override;
64 };
65 
66 #endif
Represents the stop state of a process ready to exit.
Definition: POSIXStopInfo.h:31
bool ShouldNotify(lldb_private::Event *event_ptr) override
POSIXLimboStopInfo(FreeBSDThread &thread)
Definition: POSIXStopInfo.h:33
const char * GetDescription() override
bool ShouldStop(lldb_private::Event *event_ptr) override
lldb::StopReason GetStopReason() const override
Represents the stop state of process when a new thread is spawned.
Definition: POSIXStopInfo.h:51
POSIXNewThreadStopInfo(FreeBSDThread &thread)
Definition: POSIXStopInfo.h:53
bool ShouldNotify(lldb_private::Event *event_ptr) override
lldb::StopReason GetStopReason() const override
bool ShouldStop(lldb_private::Event *event_ptr) override
const char * GetDescription() override
Simple base class for all POSIX-specific StopInfo objects.
Definition: POSIXStopInfo.h:21
POSIXStopInfo(lldb_private::Thread &thread, uint32_t status)
Definition: POSIXStopInfo.h:23
StopInfo(Thread &thread, uint64_t value)
Definition: StopInfo.cpp:30
StopReason
Thread stop reasons.