projects
/
pygdb.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing endless loop bug
[pygdb.git]
/
GdbTerminal.py
diff --git
a/GdbTerminal.py
b/GdbTerminal.py
index abf01e34776b597382c063ddd875c872472d2ea7..af0368bdcaa670154ab2ca9d49ebd71c4178a64c 100644
(file)
--- 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!
no = string.split(line)[0]
#This line does not contain the file!
+ #Check for next line...
if not rxpos.search(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
continue
pos = string.split(line)[-1]
[file,lineno] = string.split(pos,":")
cond = None
+ #Look for conditions
if i+1<len(bplines) and rxcond.search(bplines[i+1]):
i +=1
line = bplines[i]
if i+1<len(bplines) and rxcond.search(bplines[i+1]):
i +=1
line = bplines[i]