f.write("watch %(expr)s\n" % w)
- def addBreak(self, file, lineno, cond=None):
- self.breakpoints += [ {"file" : file, "lineno" : lineno, "cond" : cond} ]
+ def addBreak(self, file, lineno, cond=None):
+ bp = {"file" : file, "lineno" : lineno, "cond" : cond}
+ if not bp in self.breakpoints:
+ self.breakpoints += [bp]
def addInt(self, name, val):
- self.ints += [{"name": name, "val": val}]
+ i = {"name": name, "val": val}
+ if not i in self.ints:
+ self.ints += [i]
def addWatch(self, expr):
- self.watches += [ {"expr" : expr.strip() } ]
+ w = {"expr" : expr.strip() }
+ if not w in self.watches:
+ self.watches += [w]
def findInt(self, name):