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 LLDB_BREAKPOINT_STOPPOINT_H
10 #define LLDB_BREAKPOINT_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  Stoppoint(const Stoppoint &) = delete;
41  const Stoppoint &operator=(const Stoppoint &) = delete;
42 };
43 
44 } // namespace lldb_private
45 
46 #endif // LLDB_BREAKPOINT_STOPPOINT_H
lldb_private::Stoppoint::Dump
virtual void Dump(Stream *)=0
lldb_private::Stoppoint::GetID
lldb::break_id_t GetID() const
Definition: Stoppoint.cpp:22
lldb_private::Stoppoint::~Stoppoint
virtual ~Stoppoint()
lldb_private::Stream
Definition: Stream.h:28
lldb_private::Stoppoint::operator=
const Stoppoint & operator=(const Stoppoint &)=delete
lldb_private::Stoppoint::m_bid
lldb::break_id_t m_bid
Definition: Stoppoint.h:36
lldb_private::Stoppoint::SetID
void SetID(lldb::break_id_t bid)
Definition: Stoppoint.cpp:24
lldb_private::Stoppoint::Stoppoint
Stoppoint()
lldb::break_id_t
int32_t break_id_t
Definition: lldb-types.h:88
UserID.h
lldb-private.h
LLDB_INVALID_BREAK_ID
#define LLDB_INVALID_BREAK_ID
Definition: lldb-defines.h:49
lldb_private::Stoppoint
Definition: Stoppoint.h:17
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::Stoppoint::IsEnabled
virtual bool IsEnabled()=0
lldb_private::Stoppoint::SetEnabled
virtual void SetEnabled(bool enable)=0