How to step through a longjmp in gdb
<p>I'm trying to fix a bug in code someone else wrote, and I'm trying to step though it in gdb to figure out what is going on. But one of the lines I hit is a call to longjmp(), and after hitting "next" on that line gdb continues regular execution rather than breaking on the next source line being executed. Similar continue occurs if I try "step" on the longjmp() line. Is there any gdb command I can use to break on the next source line being executed after longjmp()?</p>