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.157.33.83 with SMTP id l19mr29215922otd.16.1469688986935; Wed, 27 Jul 2016 23:56:26 -0700 (PDT) X-Received: by 10.157.14.230 with SMTP id 93mr2132735otj.17.1469688986905; Wed, 27 Jul 2016 23:56:26 -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!news.glorb.com!f6no5329791ith.0!news-out.google.com!d130ni16889ith.0!nntp.google.com!f6no5329789ith.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 27 Jul 2016 23:56:26 -0700 (PDT) In-Reply-To: <4bd0a4ff-8262-41ee-bb5c-23672206a59a@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:1205:c68c:9d90:ada1:bcbc:1d30:cfb3; posting-account=Pm0FhgoAAAAiPscNT3etSZ15tHNZGXm_ NNTP-Posting-Host: 2a02:1205:c68c:9d90:ada1:bcbc:1d30:cfb3 References: <3e02dbb0-69e3-429b-b8c5-d4762dbeb187@googlegroups.com> <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 06:56:26 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31194 Date: 2016-07-27T23:56:26-07:00 List-Id: On Thursday, 28 July 2016 08:07:02 UTC+2, ahlan.m...@gmail.com wrote: > On Wednesday, 27 July 2016 23:03:16 UTC+2, Anh Vo wrote: > > On Wednesday, July 27, 2016 at 1:33:23 PM UTC-7, ahlan.m...@gmail.com wrote: > > > On Wednesday, 27 July 2016 21:32:37 UTC+2, Anh Vo wrote: > > > > On Wednesday, July 27, 2016 at 8:45:51 AM UTC-7, Simon Wright wrote: > > > > > ahlan.marriott@gmail.com writes: > > > > > > > > > > > What is tdm-gcc-webdl.exe and where did you get it from? > > > > > > I used TDM-GCC-5.1.0-3.exe and gcc-5.1.0-tdm-1-ada.zip from > > > > > > http://tdm-gcc.tdragon.net > > > > > > > > > > It's the "on-demand installer" (the box on the right on that page). > > > > > > > > > > My Windows 7 is 32-bit (running under VMware). > > > > > > > > It worked as expected on PC running Windows 7. Just like Simon, I used on-demand installer tdm-gcc-webdl.exe. > > > > > > > > Anh Vo > > > > > > Dear Simon and Anh, > > > > > > Yes that seems to be better. > > > If I use the on demand installer then I get traceback information. > > > This then begs the question of what exactly is the difference between what I was doing and what the on demand installer has done? > > > > > > However it is still not quite right. > > > The traceback I now get consists only of two numbers rather than the 8 Simon had. > > > They are both above 0x77000000 and like the last two in Simon's traceback (that were also in this range) bring back only ?? > > > > > > So now I am getting a traceback but not the full traceback. > > > > The exception is captured captured and handled in the exception handler. In addition, the traceback information is extracted as shown below. > > > > --... > > exception > > when Error : others => > > Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback(Error)); > > --... > > Dear Anh, > > Yes this is how I catch exceptions and display them symbolically. > My current problem is that although I get some kind of traceback, it isn't complete. > I only get two of the expected eight traceback addresses. > The two I do get have very high addresses and it seems normal that these cannot be resolved symbolically - hence they are displayed as "??" by both Gnat.Traceback.Symbolic.Symbolic_Traceback and addr2line > > MfG > Ahlan Hi, 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. MfG Ahlan