From 5d8a5dbbe84a2c74de62e5c83eabd06081512e48 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 26 Jun 2008 11:53:03 +0200 Subject: [PATCH] fixing bug in breakpoint detection --- GdbTerminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2