1 //===-- POSIXStopInfo.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_POSIXStopInfo_H_
11 #define liblldb_POSIXStopInfo_H_
13 #include "FreeBSDThread.h"
14 #include "Plugins/Process/POSIX/CrashReason.h"
15 #include "lldb/Target/StopInfo.h"
18 //===----------------------------------------------------------------------===//
19 /// @class POSIXStopInfo
20 /// @brief Simple base class for all POSIX-specific StopInfo objects.
22 class POSIXStopInfo : public lldb_private::StopInfo {
24 POSIXStopInfo(lldb_private::Thread &thread, uint32_t status)
25 : StopInfo(thread, status) {}
28 //===----------------------------------------------------------------------===//
29 /// @class POSIXLimboStopInfo
30 /// @brief Represents the stop state of a process ready to exit.
32 class POSIXLimboStopInfo : public POSIXStopInfo {
34 POSIXLimboStopInfo(FreeBSDThread &thread) : POSIXStopInfo(thread, 0) {}
36 ~POSIXLimboStopInfo();
38 lldb::StopReason GetStopReason() const;
40 const char *GetDescription();
42 bool ShouldStop(lldb_private::Event *event_ptr);
44 bool ShouldNotify(lldb_private::Event *event_ptr);
47 //===----------------------------------------------------------------------===//
48 /// @class POSIXNewThreadStopInfo
49 /// @brief Represents the stop state of process when a new thread is spawned.
52 class POSIXNewThreadStopInfo : public POSIXStopInfo {
54 POSIXNewThreadStopInfo(FreeBSDThread &thread) : POSIXStopInfo(thread, 0) {}
56 ~POSIXNewThreadStopInfo();
58 lldb::StopReason GetStopReason() const;
60 const char *GetDescription();
62 bool ShouldStop(lldb_private::Event *event_ptr);
64 bool ShouldNotify(lldb_private::Event *event_ptr);