From 054603bd7ceb0cb917a45cb56bc7266ca3733c14 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 26 Jun 2008 11:09:09 +0200 Subject: [PATCH] fixing endless loop bug --- GdbTerminal.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GdbTerminal.py b/GdbTerminal.py index abf01e3..af0368b 100644 --- a/GdbTerminal.py +++ b/GdbTerminal.py @@ -113,13 +113,18 @@ class GdbTerminal (DbgTerminal.DbgTerminal): no = string.split(line)[0] #This line does not contain the file! + #Check for next line... if not rxpos.search(line): + i += 1 + if not rxpos.search(line): + i += 1 continue pos = string.split(line)[-1] [file,lineno] = string.split(pos,":") cond = None + #Look for conditions if i+1