launch gdb from crashed app, to investigate causes

My current implementation allow launch debug by gdb in case of SIGSEGV & SIGFPE, but stack-overlow not.

Code: http://pastebin.com/hawLdnJf .
Demonstration: http://s16.radikal.ru/i190/1611/53/c8782aa9633c.gif .

What need to catch stackoverlow case?
Topic archived. No new replies allowed.