This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setjmp


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]