在gdb脚本中,何谓连续?我试过使用loop_continue,但没有成功。Gdb抛出错误,表示未定义的命令。
我想要像这样的
while $thr
if $thr->procedureId != 28
set $thr = $thr->cnext
loop_continue; // this doesn't work
end
print $thr
set $thr = $thr->cnext
end发布于 2016-11-08 15:15:59
令人惊讶的是,这里的问题是;。对我来说,这使gdb不得不说:
未定义的命令:"loop_continue“。试着“救命”。
但是,如果我省略了;,它就能工作:
(gdb) set $x = 0
(gdb) while $x < 5
>if $x < 3
>set $x = 72
>loop_continue
>end
>end
(gdb) print $x
$1 = 72https://stackoverflow.com/questions/40487801
复制相似问题