]> git.sthu.org Git - pygdb.git/commitdiff
fixing endless loop bug v0.99.3
authorStefan Huber <shuber2@gmail.com>
Thu, 26 Jun 2008 09:09:09 +0000 (11:09 +0200)
committerStefan Huber <shuber2@gmail.com>
Thu, 26 Jun 2008 09:09:09 +0000 (11:09 +0200)
GdbTerminal.py

index abf01e34776b597382c063ddd875c872472d2ea7..af0368bdcaa670154ab2ca9d49ebd71c4178a64c 100644 (file)
@@ -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<len(bplines) and rxcond.search(bplines[i+1]):
                                i +=1
                                line = bplines[i]