Pythonスクリプトサポートを使用して、Python変数に対するgdbcallコマンドの値を取得しようとしています。
私のスクリプト
import gdb
res = []
res.append(gdb.execute("call factorial(4)"))
res.append(gdb.execute("call factorial(5)"))
print res
出力
$4 = 24
$5 = 120
[None, None]
私が間違っていることはありますか?