This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: traceback feature for gfortran
- From: Daniel Jacobowitz <drow at false dot org>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: gfortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 10 Feb 2006 15:45:33 -0500
- Subject: Re: RFC: traceback feature for gfortran
- References: <8c745958ecca155bf1b39a477ea7f102@gmail.com>
On Fri, Feb 10, 2006 at 09:40:30PM +0100, FX Coudert wrote:
> Hi gfortranners,
>
> This proposed patch adds a traceback feature: for code compiled with
> the -ftrace function, a backtrace of function called is printed after a
> runtime failure. For now, this is only enable in conjunction of the
> -ffpe-trap function (by adding a signal handler for SIGFPE), but the
> framework can be used for any kind of error.
>
> All kinds of comments appreciated. This is not yet a formal patch
> proposal, I'm just asking for feedback about the feature, the way it is
> implemented, the english, anything!
Haven't we got enough different ways to do backtraces already? I'd
think you could do this by enabling unwind tables and using the
libgcc/libunwind interface. And then it goes through other
languages...
--
Daniel Jacobowitz
CodeSourcery