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(command_, condition_, once_)
18  , id(++lastId)
19  , address(address_) {}
20 
21  word getAddress() const { return address; }
22  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
word getAddress() const
Definition: BreakPoint.hh:21
Base class for CPU breakpoints.
Definition: BreakPoint.hh:13
Base class for CPU break and watch points.
BreakPoint(word address_, TclObject command_, TclObject condition_, bool once_)
Definition: BreakPoint.hh:16
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
uint16_t word
16 bit unsigned integer
Definition: openmsx.hh:29
unsigned getId() const
Definition: BreakPoint.hh:22