我有一个gdb
函数,在gdbinit
文件中定义:
define myfunc
set $retval = SOMEHOW_RET_VALUE_OF shell my-shell-command
if $retval == 0
load my-output
else
echo command not succeeded, not doing anything.\n
end
end
如何获取my-shell-func
返回状态并使用它来控制加载新的二进制输出?