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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: Exception traceback when using TDM-GCC 5.1.0-3 Date: Thu, 28 Jul 2016 14:26:27 +0200 Organization: A noiseless patient Spider Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 28 Jul 2016 12:26:01 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="a5aaa847a1537eed2ffee86793c93776"; logging-data="15936"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qrENBJd9LbBnIyl/q+eaT" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.7.0 In-Reply-To: Cancel-Lock: sha1:GnONc3T7pLhjYCcG/P9VZqg2IJ4= Xref: news.eternal-september.org comp.lang.ada:31196 Date: 2016-07-28T14:26:27+02:00 List-Id: On 2016-07-28 08:56, ahlan.marriott@gmail.com wrote: > > 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 traceback 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_traceback then all I get are the addresses and not the symbolic references I expected. > since 10 years, we are not useing gnat.traceback.symbolic.symbolic_traceback. instead we get the hex addresses with Ada.Exceptions.Exception_Message and from that we use addr2line. addr2line --functions --basenames --exe=path/to/exe-file hex-adressess -- -- Björn