Bugzilla – Bug 1982
Stack backtraces in exceptions not supported
Last modified: 2008-02-23 09:31:29
You need to log in before you can comment on or make changes to this bug.
The Ada -E binder option stores a stack traceback in the exception. This doesn't work with llvm-gcc. Testcase: procedure Trace is begin raise Program_Error; end; $ gnatmake trace.adb -bargs -E gcc -c trace.adb gnatbind -aO./ -E -I- -x trace.ali gnatlink trace.ali $ ./trace Segmentation fault (core dumped)
How such stuff is represented in terms of gcc builtins / llvm IR ?
A quick glance shows it using: __builtin_frame_address _Unwind_Backtrace _Unwind_GetIP