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
15namespace lldb_private {
16
17class Stoppoint {
18public:
19 // Constructors and Destructors
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
35protected:
37
38private:
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::break_id_t GetID() const
Definition: Stoppoint.cpp:22
Stoppoint(const Stoppoint &)=delete
virtual void SetEnabled(bool enable)=0
virtual bool IsEnabled()=0
const Stoppoint & operator=(const Stoppoint &)=delete
virtual void Dump(Stream *)=0
lldb::break_id_t m_bid
Definition: Stoppoint.h:36
void SetID(lldb::break_id_t bid)
Definition: Stoppoint.cpp:24
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
#define LLDB_INVALID_BREAK_ID
Definition: lldb-defines.h:37
A class that represents a running process on the host machine.
int32_t break_id_t
Definition: lldb-types.h:86