re PR fortran/31189 (Support backtracing for non-library errors)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 11 Aug 2007 21:52:22 +0000 (21:52 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 11 Aug 2007 21:52:22 +0000 (21:52 +0000)
commit2b840e50679f5b3208241746984cd2f195785f02
tree60e7b5dcde1b34e0269164273f272c579b14a633
parentc9ff1de3ae81dc074cac1fcf12292d38f1224b33
re PR fortran/31189 (Support backtracing for non-library errors)

PR fortran/31189

* runtime/backtrace.c (show_backtrace): Skip _gfortrani_handler
when displaying backtrace.
* runtime/compile_options.c: Include <signal.h>.
(handler): New function.
(set_options): Set signal handlers for backtrace.
* libgfortran.h (handler): Add prototype.

* invoke.texi (-fbacktrace): Document the new behaviour.

Co-Authored-By: Tobias Burnus <burnus@gcc.gnu.org>
From-SVN: r127364
gcc/fortran/ChangeLog
gcc/fortran/invoke.texi
libgfortran/ChangeLog
libgfortran/libgfortran.h
libgfortran/runtime/backtrace.c
libgfortran/runtime/compile_options.c