I am trying to get value of gdb call command to a python variable using python scripting support.
My Script
import gdb
res = []
res.append(gdb.execute("call factorial(4)"))
res.append(gdb.execute("call factorial(5)"))
print res
Output
$4 = 24
$5 = 120
[None, None]
Anything that I am doing wrong ?