debugger: use to_string attribute to gdb.execute if available

This commit is contained in:
hjk
2010-12-17 17:41:33 +01:00
parent 23c22b7c66
commit d55499f58a

View File

@@ -227,6 +227,10 @@ def parseAndEvaluate(exp):
def catchCliOutput(command):
try:
return gdb.execute(command, to_string=True)
except:
pass
filename, file = createTempFile()
gdb.execute("set logging off")
gdb.execute("set logging redirect off")