First Last Prev Next    No search results available
Details
: Stack backtraces in exceptions not supported
Bug#: 1982
: tools
: gnat
Status: ASSIGNED
Resolution:
: Other
: Linux
: trunk
: P2
: enhancement
: ---

:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Duncan Sands <baldrick@free.fr>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2008-02-04 14:24
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)
------- Comment #1 From Anton Korobeynikov 2008-02-23 08:35:24 -------
How such stuff is represented in terms of gcc builtins / llvm IR ?
------- Comment #2 From Duncan Sands 2008-02-23 09:31:29 -------
A quick glance shows it using:

__builtin_frame_address
_Unwind_Backtrace
_Unwind_GetIP

First Last Prev Next    No search results available