openMSX
WatchPoint.hh
Go to the documentation of this file.
1 #ifndef WATCHPOINT_HH
2 #define WATCHPOINT_HH
3 
4 #include "BreakPointBase.hh"
5 
6 namespace openmsx {
7 
12 class WatchPoint : public BreakPointBase
13 {
14 public:
16 
19  WatchPoint(TclObject command, TclObject condition,
20  Type type, unsigned beginAddr, unsigned endAddr,
21  unsigned newId = -1);
22  virtual ~WatchPoint() = default; // needed for dynamic_cast
23 
24  unsigned getId() const { return id; }
25  Type getType() const { return type; }
26  unsigned getBeginAddress() const { return beginAddr; }
27  unsigned getEndAddress() const { return endAddr; }
28 
29 private:
30  unsigned id;
31  unsigned beginAddr;
32  unsigned endAddr;
33  Type type;
34 
35  static unsigned lastId;
36 };
37 
38 } // namespace openmsx
39 
40 #endif
Type getType() const
Definition: WatchPoint.hh:25
unsigned getEndAddress() const
Definition: WatchPoint.hh:27
unsigned getId() const
Definition: WatchPoint.hh:24
Base class for CPU breakpoints.
Definition: WatchPoint.hh:12
Base class for CPU break and watch points.
WatchPoint(TclObject command, TclObject condition, Type type, unsigned beginAddr, unsigned endAddr, unsigned newId=-1)
Begin and end address are inclusive (IOW range = [begin, end])
Definition: WatchPoint.cc:8
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
virtual ~WatchPoint()=default
unsigned getBeginAddress() const
Definition: WatchPoint.hh:26