openMSX
BreakPoint.hh
Go to the documentation of this file.
1 #ifndef BREAKPOINT_HH
2 #define BREAKPOINT_HH
3 
4 #include "BreakPointBase.hh"
5 #include "openmsx.hh"
6 
7 namespace openmsx {
8 
13 class BreakPoint final : public BreakPointBase
14 {
15 public:
16  BreakPoint(word address_, TclObject command_, TclObject condition_, bool once_)
17  : BreakPointBase(std::move(command_), std::move(condition_), once_)
18  , id(++lastId)
19  , address(address_) {}
20 
21  [[nodiscard]] word getAddress() const { return address; }
22  [[nodiscard]] unsigned getId() const { return id; }
23 
24 private:
25  unsigned id;
26  word address;
27 
28  static inline unsigned lastId = 0;
29 };
30 
31 } // namespace openmsx
32 
33 #endif
Base class for CPU break and watch points.
Base class for CPU breakpoints.
Definition: BreakPoint.hh:14
unsigned getId() const
Definition: BreakPoint.hh:22
BreakPoint(word address_, TclObject command_, TclObject condition_, bool once_)
Definition: BreakPoint.hh:16
word getAddress() const
Definition: BreakPoint.hh:21
This file implemented 3 utility functions:
Definition: Autofire.cc:5
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29