X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=BreakpointsFrame.py;h=8450699eb4c5e970cd73837bf4ffba2ec177f436;hp=7d53cc2cfa699ab4b5048297049d3b6d4b365f74;hb=HEAD;hpb=e8f5eba24b3fd5cdd839bcfc170a2e3aa16dd05d diff --git a/BreakpointsFrame.py b/BreakpointsFrame.py index 7d53cc2..8450699 100644 --- a/BreakpointsFrame.py +++ b/BreakpointsFrame.py @@ -122,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) @@ -170,7 +176,7 @@ class BreakpointsFrame (StatusFrame.StatusFrame): return - ifsplit = string.split(bpspec, "if") + ifsplit = string.split(bpspec, " if ") if len(ifsplit)>1: cond = ifsplit[1].strip()