From: Stefan Huber Date: Thu, 26 Jun 2008 09:09:09 +0000 (+0200) Subject: fixing endless loop bug X-Git-Tag: v0.99.3^0 X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=054603bd7ceb0cb917a45cb56bc7266ca3733c14;p=pygdb.git fixing endless loop bug --- 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