gdb scripting restart continue while loop -
what equivalent of continue in gdb scripts? tried using loop_continue didn't work. gdb threw error saying undefined command.
i want like
while $thr if $thr->procedureid != 28 set $thr = $thr->cnext loop_continue; // doesn't work end print $thr set $thr = $thr->cnext end
the problem here, surprisingly, ;
. me causes gdb say:
undefined command: "loop_continue". try "help".
however, if leave out ;
, works:
(gdb) set $x = 0 (gdb) while $x < 5 >if $x < 3 >set $x = 72 >loop_continue >end >end (gdb) print $x $1 = 72
Comments
Post a Comment