diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-08-11 21:52:22 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-08-11 21:52:22 +0000 |
commit | 2b840e50679f5b3208241746984cd2f195785f02 (patch) | |
tree | 60e7b5dcde1b34e0269164273f272c579b14a633 /libgfortran/libgfortran.h | |
parent | c9ff1de3ae81dc074cac1fcf12292d38f1224b33 (diff) | |
download | gcc-2b840e50679f5b3208241746984cd2f195785f02.zip gcc-2b840e50679f5b3208241746984cd2f195785f02.tar.gz gcc-2b840e50679f5b3208241746984cd2f195785f02.tar.bz2 |
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
Diffstat (limited to 'libgfortran/libgfortran.h')
-rw-r--r-- | libgfortran/libgfortran.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/libgfortran.h b/libgfortran/libgfortran.h index 6013ce6..0671801 100644 --- a/libgfortran/libgfortran.h +++ b/libgfortran/libgfortran.h @@ -373,6 +373,9 @@ options_t; extern options_t options; internal_proto(options); +extern void handler (int); +internal_proto(handler); + /* Compile-time options that will influence the library. */ |