From: Stefan Huber Date: Fri, 13 Jun 2008 13:14:08 +0000 (+0200) Subject: fixing bug: parsing cond. breakpoint X-Git-Tag: v0.99.1~7 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=ed2fac6a9e1b6f98e4847e1dda8c2a717d7a0b29;p=pygdb.git fixing bug: parsing cond. breakpoint --- diff --git a/BreakpointsFrame.py b/BreakpointsFrame.py index b3e0030..8450699 100644 --- a/BreakpointsFrame.py +++ b/BreakpointsFrame.py @@ -176,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() diff --git a/Configuration.py b/Configuration.py index 6f08a20..460b897 100644 --- a/Configuration.py +++ b/Configuration.py @@ -88,8 +88,8 @@ class Configuration: print "Wrong breakpoint format:", tail return - preif = string.split(tail, "if")[0].strip() - postif = string.join( string.split(tail, "if")[1:], "if").strip() + preif = string.split(tail, " if ")[0].strip() + postif = string.join( string.split(tail, " if ")[1:], " if ").strip() [file,lineno] = string.split(preif, ":") lineno = int(lineno) diff --git a/GdbTerminal.py b/GdbTerminal.py index 81a6300..ff6dc6b 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -104,8 +104,7 @@ class GdbTerminal (DbgTerminal.DbgTerminal): #This line does not contain the file! if not rxpos.search(line): - i += 1 - line = bplines[i] + continue pos = string.split(line)[-1] [file,lineno] = string.split(pos,":") @@ -114,7 +113,7 @@ class GdbTerminal (DbgTerminal.DbgTerminal): if i+1