6 unsigned WatchPoint::lastId = 0;
9 Type type_,
unsigned beginAddr_,
unsigned endAddr_,
10 bool once_,
unsigned newId )
12 , id((newId == unsigned(-1)) ? ++lastId : newId)
13 , beginAddr(beginAddr_), endAddr(endAddr_), type(type_)
15 assert(beginAddr <= endAddr);
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 break and watch points.
Thanks to enen for testing this on a real cartridge: