From: Stefan Huber Date: Thu, 26 Jun 2008 09:53:03 +0000 (+0200) Subject: fixing bug in breakpoint detection X-Git-Tag: v0.99.4~3 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=5d8a5dbbe84a2c74de62e5c83eabd06081512e48;p=pygdb.git fixing bug in breakpoint detection --- diff --git a/GdbTerminal.py b/GdbTerminal.py index af0368b..f8a8614 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -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