]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Breakpoint/Stoppoint.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / include / lldb / Breakpoint / Stoppoint.h
1 //===-- Stoppoint.h ---------------------------------------------*- 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 #ifndef liblldb_Stoppoint_h_
11 #define liblldb_Stoppoint_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Core/UserID.h"
18 #include "lldb/lldb-private.h"
19
20 namespace lldb_private {
21
22 class Stoppoint {
23 public:
24   //------------------------------------------------------------------
25   // Constructors and Destructors
26   //------------------------------------------------------------------
27   Stoppoint();
28
29   virtual ~Stoppoint();
30
31   //------------------------------------------------------------------
32   // Methods
33   //------------------------------------------------------------------
34   virtual void Dump(Stream *) = 0;
35
36   virtual bool IsEnabled() = 0;
37
38   virtual void SetEnabled(bool enable) = 0;
39
40   lldb::break_id_t GetID() const;
41
42   void SetID(lldb::break_id_t bid);
43
44 protected:
45   lldb::break_id_t m_bid;
46
47 private:
48   //------------------------------------------------------------------
49   // For Stoppoint only
50   //------------------------------------------------------------------
51   DISALLOW_COPY_AND_ASSIGN(Stoppoint);
52 };
53
54 } // namespace lldb_private
55
56 #endif // liblldb_Stoppoint_h_