2016-11-08 8 views
0

gdbスクリプトでcontinueと同等の機能は何ですか? loop_continueを使ってみましたが動作しませんでした。 Gdbは、未定義コマンドのエラーを投げました。gdbスクリプトの再起動continue whileループ

私は

while $thr 
    if $thr->procedureId != 28 
     set $thr = $thr->cnext 
     loop_continue; // this doesn't work 
    end 
    print $thr 
    set $thr = $thr->cnext 
    end 

答えて

1

ような何かここで問題にしたい、驚くべきことに、;です。私にとってこれは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 = 72 
関連する問題