This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
setjmp
- From: Jack <jack9981 at gmail dot com>
- To: news.gnu.gdb <gdb at sourceware dot org>
- Date: Sat, 28 Apr 2007 09:27:22 +0800
- Subject: 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.