From: Stefan Huber Date: Fri, 4 Jul 2008 09:08:34 +0000 (+0200) Subject: harden breakpoint parsing X-Git-Tag: v0.99.4^0 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=4340c724391b2931f027a1ff0e994314506c8a26;p=pygdb.git harden breakpoint parsing --- diff --git a/GdbTerminal.py b/GdbTerminal.py index 842f768..58c3bbe 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -95,45 +95,47 @@ class GdbTerminal (DbgTerminal.DbgTerminal): bplines = self.__getAnswerFromCmd("info breakpoints\n") rxbp = re.compile("^\d+\s+breakpoint") - rxpos = re.compile("^.*at\s+\S+:\d+$") + rxpos = re.compile("at \S+:\d+$") rxcond = re.compile("^\s+stop only if") bpnts = [] - i = 1 - #Parse the resulting lines - while i