4

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?

Mena
  • 43
  • 1
  • 1
  • 3

1 Answers1

12

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?

Community
  • 1
  • 1
djf
  • 6,592
  • 6
  • 44
  • 62