setjmp

Jack jack9981@gmail.com
Sat Apr 28 01:27:00 GMT 2007


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.



More information about the Gdb mailing list