[fortran, patch] Allow displaying backtraces from user code

FX fxcoudert@gmail.com
Sat Mar 3 07:45:00 GMT 2012


PR 36044 (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36044) is an enhancement request for a way to display backtraces from user code. I'm against adding yet another nonstandard intrinsic for this purpose (which is how Intel Fortran does it), but I would like to offer the following solution to the issue, as I think it can be useful in some cases (and the way I suggest should not be a maintainance burden for us):

  -- export _gfortran_show_backtrace() from libgfortran (instead of it being an internal function)
  -- add documentation on how to call this function from user-code using BIND(C)

Patch was bootstrapped and regtested on x86_64-apple-darwin11, also tested with "make info html pdf". OK for trunk?
FX


-------------- next part --------------
A non-text attachment was scrubbed...
Name: traceback2.ChangeLog
Type: application/octet-stream
Size: 311 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120303/8299ea6a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: traceback2.diff
Type: application/octet-stream
Size: 2050 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120303/8299ea6a/attachment-0001.obj>


More information about the Fortran mailing list