From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: GNAT compiler versions and addr2line
Date: Wed, 22 Aug 2018 15:30:40 -0500
Date: 2018-08-22T15:30:40-05:00 [thread overview]
Message-ID: <plkh5g$m31$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: dbf742f5-1bd4-4903-8299-8739e6179bfc@googlegroups.com
I can vouch for the fact that this works on our Debian server. It's a bit
annoying to have to add code (as it has to be removed again when using the
same code with other Ada compiler (Janus/Ada in my case), but it works and I
couldn't really use Ada without it (too used to the Janus/Ada version). At
least in most cases there are other things (like rep. clauses) that need
change as well.
Randy.
"Anh Vo" <anhvofrcaus@gmail.com> wrote in message
news:dbf742f5-1bd4-4903-8299-8739e6179bfc@googlegroups.com...
> 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 20:30 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
2018-08-22 20:30 ` Randy Brukardt [this message]
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