openMSX
DebugCondition.hh
Go to the documentation of this file.
1 #ifndef DEBUGCONDITION_HH
2 #define DEBUGCONDITION_HH
3 
4 #include "BreakPointBase.hh"
5 
6 namespace openmsx {
7 
11 class DebugCondition final : public BreakPointBase
12 {
13 public:
14  DebugCondition(TclObject command_, TclObject condition_, bool once_)
15  : BreakPointBase(command_, condition_, once_)
16  , id(++lastId) {}
17 
18  unsigned getId() const { return id; }
19 
20 private:
21  unsigned id;
22 
23  static inline unsigned lastId = 0;
24 };
25 
26 } // namespace openmsx
27 
28 #endif
unsigned getId() const
General debugger condition Like breakpoints, but not tied to a specifc address.
Base class for CPU break and watch points.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
DebugCondition(TclObject command_, TclObject condition_, bool once_)