]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Breakpoint/Stoppoint.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / 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 #include "lldb/Utility/UserID.h"
14 #include "lldb/lldb-private.h"
15
16 namespace lldb_private {
17
18 class Stoppoint {
19 public:
20   //------------------------------------------------------------------
21   // Constructors and Destructors
22   //------------------------------------------------------------------
23   Stoppoint();
24
25   virtual ~Stoppoint();
26
27   //------------------------------------------------------------------
28   // Methods
29   //------------------------------------------------------------------
30   virtual void Dump(Stream *) = 0;
31
32   virtual bool IsEnabled() = 0;
33
34   virtual void SetEnabled(bool enable) = 0;
35
36   lldb::break_id_t GetID() const;
37
38   void SetID(lldb::break_id_t bid);
39
40 protected:
41   lldb::break_id_t m_bid;
42
43 private:
44   //------------------------------------------------------------------
45   // For Stoppoint only
46   //------------------------------------------------------------------
47   DISALLOW_COPY_AND_ASSIGN(Stoppoint);
48 };
49
50 } // namespace lldb_private
51
52 #endif // liblldb_Stoppoint_h_