21 Type type_,
unsigned beginAddr_,
unsigned endAddr_,
22 bool once_,
unsigned newId = -1)
24 , id((newId == unsigned(-1)) ? ++lastId : newId)
25 , beginAddr(beginAddr_), endAddr(endAddr_), type(type_)
27 assert(beginAddr <= endAddr);
32 unsigned getId()
const {
return id; }
43 static inline unsigned lastId = 0;
unsigned getEndAddress() const
WatchPoint(TclObject command_, TclObject condition_, Type type_, unsigned beginAddr_, unsigned endAddr_, bool once_, unsigned newId=-1)
Begin and end address are inclusive (IOW range = [begin, end])
Base class for CPU breakpoints.
Base class for CPU break and watch points.
Thanks to enen for testing this on a real cartridge:
virtual ~WatchPoint()=default
unsigned getBeginAddress() const