StatusFrame.StatusFrame.__init__(self, debugger)
self.set_label("Breakpoints")
+ debugger.gotActiveCallback += [self.updateValues]
+
vbox = gtk.VBox(False, 5)
self.add(vbox)
def addBreakpoint(self, file, lineno, cond=None):
no = self.debugger.setBreakpoint(file, lineno, cond)
-
if no!=None:
self.addBreakpointToList(no, file, lineno, cond)
else:
def applyConfiguration(self, conf):
for b in conf.breakpoints:
self.addBreakpoint(b["file"], b["lineno"], b["cond"])
- self.updateValues(None)
+ self.updateValues(None, None)
def fillConfiguration(self, conf):
iter = self.model.get_iter_first()
while iter != None:
spec, = self.model.get(iter, 1)
- conf.parseBreak(spec)
+
+ #Replacing file by absolute path
+ file = string.split(spec, ":")[0]
+ file = self.debugger.toAbsPath(file)
+ postfile = string.join( string.split(spec,":")[1:], ":")
+
+ conf.parseBreak(file + ":" + postfile )
iter = self.model.iter_next(iter)
return
- ifsplit = string.split(bpspec, "if")
+ ifsplit = string.split(bpspec, " if ")
if len(ifsplit)>1:
cond = ifsplit[1].strip()
if not self.debugger.isActive():
return
- self.updateValues(None)
+ self.updateValues(None, None)
- def updateValues(self, pos):
+ def updateValues(self, status, param):
bpnts = self.debugger.getBreakpoints()