From: Stefan Huber Date: Fri, 4 Jul 2008 09:08:34 +0000 (+0200) Subject: harden breakpoint parsing X-Git-Tag: v0.99.4 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=6a96e33bf455c505dd2c803642479b0631613f5b;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