Skip to content
Snippets Groups Projects
Commit d55499f5 authored by hjk's avatar hjk
Browse files

debugger: use to_string attribute to gdb.execute if available

parent 23c22b7c
No related branches found
No related tags found
No related merge requests found
...@@ -227,6 +227,10 @@ def parseAndEvaluate(exp): ...@@ -227,6 +227,10 @@ def parseAndEvaluate(exp):
def catchCliOutput(command): def catchCliOutput(command):
try:
return gdb.execute(command, to_string=True)
except:
pass
filename, file = createTempFile() filename, file = createTempFile()
gdb.execute("set logging off") gdb.execute("set logging off")
gdb.execute("set logging redirect off") gdb.execute("set logging redirect off")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment