debugger: potential fix for QTCREATORBUG-1183

This commit is contained in:
hjk
2010-04-16 12:40:21 +02:00
parent 6d3d54a84f
commit 543826cb12

View File

@@ -427,7 +427,7 @@ def listOfLocals(varList):
# Assuming gdb 7.0 release or 6.8-symbianelf.
filename, file = createTempFile()
#warn("VARLIST: %s " % varList)
#warn("VARLIST: %s " % len(varList))
#warn("FILENAME: %s " % filename)
gdb.execute("set logging off")
gdb.execute("set logging redirect off")
gdb.execute("set logging file %s" % filename)
@@ -453,6 +453,7 @@ def listOfLocals(varList):
gdb.execute("set logging off")
gdb.execute("set logging redirect off")
try:
temp = open(filename, "r")
for line in temp:
if len(line) == 0 or line.startswith(" "):
@@ -463,6 +464,8 @@ def listOfLocals(varList):
continue
varList.append(line[0:pos])
temp.close()
except:
pass
removeTempFile(filename, file)
#warn("VARLIST: %s " % varList)
for name in varList: