openMSX
ProbeBreakPoint.hh
Go to the documentation of this file.
1 #ifndef PROBEBREAKPOINT_HH
2 #define PROBEBREAKPOINT_HH
3 
4 #include "BreakPointBase.hh"
5 #include "Observer.hh"
6 
7 namespace openmsx {
8 
9 class Debugger;
10 class ProbeBase;
11 
12 class ProbeBreakPoint final : public BreakPointBase
13  , private Observer<ProbeBase>
14 {
15 public:
16  ProbeBreakPoint(TclObject command,
17  TclObject condition,
18  Debugger& debugger,
19  ProbeBase& probe,
20  unsigned newId = -1);
22 
23  unsigned getId() const { return id; }
24  const ProbeBase& getProbe() const { return probe; }
25 
26 private:
27  // Observer<ProbeBase>
28  void update(const ProbeBase& subject) override;
29  void subjectDeleted(const ProbeBase& subject) override;
30 
31  Debugger& debugger;
32  ProbeBase& probe;
33  const unsigned id;
34 
35  static unsigned lastId;
36 };
37 
38 } // namespace openmsx
39 
40 #endif
Base class for CPU break and watch points.
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
ProbeBreakPoint(TclObject command, TclObject condition, Debugger &debugger, ProbeBase &probe, unsigned newId=-1)
Generic Gang-of-Four Observer class, templatized edition.
Definition: Observer.hh:9
const ProbeBase & getProbe() const