X-Git-Url: https://git.sthu.org/?p=pygdb.git;a=blobdiff_plain;f=GdbTerminal.py;h=af0368bdcaa670154ab2ca9d49ebd71c4178a64c;hp=6218d64780e18e7b2e0f515e3ecf7d90bd34ac3a;hb=054603bd7ceb0cb917a45cb56bc7266ca3733c14;hpb=32cf025183d25d3ab1f8e398ef391f6b3616d980 diff --git a/GdbTerminal.py b/GdbTerminal.py index 6218d64..af0368b 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -95,8 +95,8 @@ class GdbTerminal (DbgTerminal.DbgTerminal): bplines = self.__getAnswerFromCmd("info breakpoints\n") rxbp = re.compile("^\d+\s+breakpoint") - rxpos = re.compile("^.* at \S+:\d+$") - rxcond = re.compile("^\tstop only if") + rxpos = re.compile("^.*at \S+:\d+$") + rxcond = re.compile("^\s+stop only if") bpnts = [] i = 1 @@ -113,13 +113,18 @@ class GdbTerminal (DbgTerminal.DbgTerminal): no = string.split(line)[0] #This line does not contain the file! + #Check for next line... if not rxpos.search(line): + i += 1 + if not rxpos.search(line): + i += 1 continue pos = string.split(line)[-1] [file,lineno] = string.split(pos,":") cond = None + #Look for conditions if i+1