From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: GNAT compiler versions and addr2line
Date: Wed, 22 Aug 2018 12:43:10 -0700 (PDT)
Date: 2018-08-22T12:43:10-07:00 [thread overview]
Message-ID: <dbf742f5-1bd4-4903-8299-8739e6179bfc@googlegroups.com> (raw)
In-Reply-To: <plk9jg$cfc$1@dont-email.me>
On Wednesday, August 22, 2018 at 11:21:37 AM UTC-7, Phil wrote:
> Alejandro R. Mosteo <alejandro@mosteo.com> wrote:
> > I have seen the same up to current 7.3 FSF Ubuntu versions, and still
> > haven't found a workaround :/
>
> Ah, at least it's not just me!
gnatmake -g foo.adb -bargs -E for the following modified code. You will be pleasantly surprised that addr2line is not needed explicitly.
with Gnat.Traceback.Symbolic;
with Ada.Exceptions; use Ada;
with Ada.Text_IO; use Ada.Text_IO;
procedure Foo is
procedure Able is
begin
raise Constraint_Error with "It broke";
end Able;
procedure Baker is
begin
Able;
end Baker;
begin
Baker;
exception
when Err : others =>
Put_Line ("Houston we have a problem: " &
Exceptions.Exception_Information(Err));
Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback(Err));
end Foo;
next prev parent reply other threads:[~2018-08-22 19:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-22 13:01 GNAT compiler versions and addr2line Phil
2018-08-22 13:50 ` Egil H H
2018-08-22 14:39 ` Phil
2018-08-22 14:15 ` gautier_niouzes
2018-08-22 14:41 ` Phil
2018-08-22 15:14 ` Alejandro R. Mosteo
2018-08-22 18:21 ` Phil
2018-08-22 19:43 ` Anh Vo [this message]
2018-08-22 20:30 ` Randy Brukardt
2018-08-23 18:00 ` Phil
2018-08-22 17:40 ` Jeffrey R. Carter
2018-08-22 21:10 ` Brian Drummond
2018-08-23 17:21 ` Simon Wright
2018-08-23 17:50 ` Phil
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox