fixing bug in breakpoint detection
authorStefan Huber <shuber2@gmail.com>
Thu, 26 Jun 2008 09:53:03 +0000 (11:53 +0200)
committerStefan Huber <shuber2@gmail.com>
Thu, 26 Jun 2008 09:53:03 +0000 (11:53 +0200)
GdbTerminal.py

index af0368bdcaa670154ab2ca9d49ebd71c4178a64c..f8a8614e1f3c7dd1040f616d52987233894fe74d 100644 (file)
@@ -95,7 +95,7 @@ class GdbTerminal (DbgTerminal.DbgTerminal):
                bplines = self.__getAnswerFromCmd("info breakpoints\n")
 
                rxbp = re.compile("^\d+\s+breakpoint")
-               rxpos = re.compile("^.*at \S+:\d+$")
+               rxpos = re.compile("^.*at\s+\S+:\d+$")
                rxcond = re.compile("^\s+stop only if")
 
                bpnts = []
@@ -116,6 +116,7 @@ class GdbTerminal (DbgTerminal.DbgTerminal):
                        #Check for next line...
                        if not rxpos.search(line):
                                i += 1
+                               line = bplines[i]
                        if not rxpos.search(line):
                                i += 1
                                continue