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
openmsx::DebugCondition::DebugCondition
DebugCondition(TclObject command_, TclObject condition_, bool once_)
Definition: DebugCondition.hh:14
openmsx::DebugCondition::getId
unsigned getId() const
Definition: DebugCondition.hh:18
openmsx::DebugCondition
General debugger condition Like breakpoints, but not tied to a specifc address.
Definition: DebugCondition.hh:11
BreakPointBase.hh
openmsx::BreakPointBase
Base class for CPU break and watch points.
Definition: BreakPointBase.hh:14
openmsx::TclObject
Definition: TclObject.hh:21
openmsx
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5