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
7namespace openmsx {
8
9class Debugger;
10class ProbeBase;
11
12class ProbeBreakPoint final : public BreakPointBase<ProbeBreakPoint>
13 , private Observer<ProbeBase>
14{
15public:
16 static constexpr std::string_view prefix = "pp#";
17
18public:
20 TclObject condition,
21 Debugger& debugger,
22 ProbeBase& probe,
23 bool once,
24 unsigned newId = -1);
26
27 [[nodiscard]] const ProbeBase& getProbe() const { return probe; }
28
29private:
30 // Observer<ProbeBase>
31 void update(const ProbeBase& subject) noexcept override;
32 void subjectDeleted(const ProbeBase& subject) override;
33
34private:
35 Debugger& debugger;
36 ProbeBase& probe;
37};
38
39} // namespace openmsx
40
41#endif
CRTP base class for CPU break and watch points.
Generic Gang-of-Four Observer class, templatized edition.
Definition Observer.hh:10
static constexpr std::string_view prefix
const ProbeBase & getProbe() const
This file implemented 3 utility functions:
Definition Autofire.cc:11