LLDB  mainline
Stoppoint.h
Go to the documentation of this file.
1 //===-- Stoppoint.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_Stoppoint_h_
10 #define liblldb_Stoppoint_h_
11 
12 #include "lldb/Utility/UserID.h"
13 #include "lldb/lldb-private.h"
14 
15 namespace lldb_private {
16 
17 class Stoppoint {
18 public:
19  // Constructors and Destructors
20  Stoppoint();
21 
22  virtual ~Stoppoint();
23 
24  // Methods
25  virtual void Dump(Stream *) = 0;
26 
27  virtual bool IsEnabled() = 0;
28 
29  virtual void SetEnabled(bool enable) = 0;
30 
31  lldb::break_id_t GetID() const;
32 
33  void SetID(lldb::break_id_t bid);
34 
35 protected:
37 
38 private:
39  // For Stoppoint only
40  DISALLOW_COPY_AND_ASSIGN(Stoppoint);
41 };
42 
43 } // namespace lldb_private
44 
45 #endif // liblldb_Stoppoint_h_
void SetID(lldb::break_id_t bid)
Definition: Stoppoint.cpp:24
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
int32_t break_id_t
Definition: lldb-types.h:88
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
virtual void SetEnabled(bool enable)=0
virtual void Dump(Stream *)=0
lldb::break_id_t GetID() const
Definition: Stoppoint.cpp:22
lldb::break_id_t m_bid
Definition: Stoppoint.h:36
virtual bool IsEnabled()=0