From 4340c724391b2931f027a1ff0e994314506c8a26 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 4 Jul 2008 11:08:34 +0200 Subject: [PATCH] harden breakpoint parsing --- GdbTerminal.py | 61 +++++++++++++++++++++++++------------------------- 1 file changed, 31 insertions(+), 30 deletions(-) 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