From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.237.34.2 with SMTP id n2mr30345074qtc.5.1469722033947; Thu, 28 Jul 2016 09:07:13 -0700 (PDT) X-Received: by 10.157.39.133 with SMTP id c5mr2327443otb.19.1469722033902; Thu, 28 Jul 2016 09:07:13 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!c52no5539873qte.1!news-out.google.com!d130ni17308ith.0!nntp.google.com!f6no5451072ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 28 Jul 2016 09:07:13 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c68c:9d90:71c4:f16e:f5f8:57c7; posting-account=Pm0FhgoAAAAiPscNT3etSZ15tHNZGXm_ NNTP-Posting-Host: 2a02:1205:c68c:9d90:71c4:f16e:f5f8:57c7 References: <66240de6-d3a8-458d-9eb9-1214f790831c@googlegroups.com> <22f2e37f-dc90-42ce-a6d3-42f0a471c4d6@googlegroups.com> <6178bf6c-6125-43b2-86c4-aeb08be48442@googlegroups.com> <273d77a5-55a6-4de6-abbe-93bb61ecfdc3@googlegroups.com> <4bd0a4ff-8262-41ee-bb5c-23672206a59a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Exception traceback when using TDM-GCC 5.1.0-3 From: ahlan.marriott@gmail.com Injection-Date: Thu, 28 Jul 2016 16:07:13 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 3354 X-Received-Body-CRC: 624414237 Xref: news.eternal-september.org comp.lang.ada:31202 Date: 2016-07-28T09:07:13-07:00 List-Id: On Thursday, 28 July 2016 14:26:03 UTC+2, bj=C3=B6rn lundin wrote: > On 2016-07-28 08:56, ahlan.marriott@gmail.com wrote: >=20 > >=20 > > If I do exactly what Simon does (use gnat make on a single file) then I= get eight traceback addresses. > > However when I use addr2line I don't get a very useful symbolic traceba= ck as it refers to lines within b~ce.adb rather than the true source ce.adb > > If I catch the exception and use gnat.traceback.symbolic.symbolic_trace= back then all I get are the addresses and not the symbolic references I exp= ected. > >=20 >=20 >=20 > since 10 years, we are not useing > gnat.traceback.symbolic.symbolic_traceback. >=20 >=20 > instead we get the hex addresses with Ada.Exceptions.Exception_Message > and from that we use addr2line. >=20 >=20 > addr2line --functions --basenames --exe=3Dpath/to/exe-file hex-adressess >=20 >=20 > --=20 > -- > Bj=C3=B6rn Dear Bj=C3=B6rn, We use Gnat symbolic because we catch the exceptions and write them into a = log. In this case it makes more sense to write the symbolic traceback rather tha= n a series of hexadecimal numbers. With AdaCore Pro & GPL this works fine. If only I could get TDM to do the same ;-( MfG Ahlan