Commit d55499f5 authored by hjk's avatar hjk
Browse files

debugger: use to_string attribute to gdb.execute if available

parent 23c22b7c
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment