X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=BreakpointsFrame.py;h=b3e0030a9627475465ed076792d0a04e795b8618;hb=117954f2ec8c12ac77be9f22dc4e9450ad2b3c48;hp=9f1fe98c53e931c2927796ff4d035fab48ecf55c;hpb=0296b6d5afe20a15764842873917bf1d6aa34b77;p=pygdb.git diff --git a/BreakpointsFrame.py b/BreakpointsFrame.py index 9f1fe98..b3e0030 100644 --- a/BreakpointsFrame.py +++ b/BreakpointsFrame.py @@ -102,7 +102,6 @@ class BreakpointsFrame (StatusFrame.StatusFrame): def addBreakpoint(self, file, lineno, cond=None): no = self.debugger.setBreakpoint(file, lineno, cond) - if no!=None: self.addBreakpointToList(no, file, lineno, cond) else: @@ -123,7 +122,13 @@ class BreakpointsFrame (StatusFrame.StatusFrame): 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)