This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/30498] Support traceback (backtrace) on errors
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2007 09:47:01 -0000
- Subject: [Bug libfortran/30498] Support traceback (backtrace) on errors
- References: <bug-30498-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from burnus at gcc dot gnu dot org 2007-02-07 09:47 -------
> Patch implementing the -fbacktrace option
I think one should add also some userhandler
signal(SIGSEGV, my_segv_handler);
which calls show_backtrace and exits/coredumps then.
That way we calso get a backtrace for signalling arithmetic errors or for wrong
pointer accesses etc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30498