Is there has "setjmp" command in gdb? Example:
setjmp( a )
if( x )
do A
else
do B
longjmp a
After longjmp a , gdb will go to setjmp(a), and the enviroment keep
the same as first run to there .
I think it is a meaningful function, we can debug "do A" and "do B"
without rerun the program.
--
All the best.