I'm trying to set a breakpoint in gdb to stop before an exit(0) signal. I've tried:
stop sigquit
although the program still exits without stopping. How do I set a breakpoint for this?
I'm trying to set a breakpoint in gdb to stop before an exit(0) signal. I've tried:
stop sigquit
although the program still exits without stopping. How do I set a breakpoint for this?
Have you tried setting breakpoints on exit
or _exit
?
If that doesn't work have a look at setting a gdb exit breakpoint not working?