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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,fea50f781bb229dc X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Symbolic tracebacks on Debian Date: Sat, 22 May 2010 12:25:47 +0100 Organization: A noiseless patient Spider Message-ID: References: <85f51aeb-cac9-4591-921a-a7f50c8ef142@a21g2000yqn.googlegroups.com> <1pup1z7a4f1pq$.of30sejrqe4m.dlg@40tude.net> <87hbmae33k.fsf@ludovic-brenta.org> <85j595F1lqU1@mid.individual.net> <87sk5navk6.fsf_-_@ludovic-brenta.org> <82bpc8s17m.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Sat, 22 May 2010 11:25:49 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="31494"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ff5kVfOhFR4UKJ2dz3m3yROYvKVXfZiQ=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) Cancel-Lock: sha1:joiYzGD+M5YbgA3/6XZwNuXN2Ug= sha1:EIbSKfzNSXh1au87Xfw8gwsOdMY= Xref: g2news2.google.com comp.lang.ada:11876 Date: 2010-05-22T12:25:47+01:00 List-Id: "(see below)" writes: > On 21/05/2010 09:52, in article 82bpc8s17m.fsf@stephe-leake.org, "Stephen > Leake" wrote: >> Because symbolic traceback are not supported on _all_ gnat platforms, I >> don't use them on _any_ - that way my code is portable. So I did not >> notice this problem. >> >> I dump the stack trace as hex addresses, then later run addr2line >> manually if I want the symbolic trace. > > Can you say exactly what the steps are to do that? > I've never understood it + therefore never used it. You need to call GNAT.Exception_Traces.Trace_On (Kind => GNAT.Exception_Traces.Unhandled_Raise); from somewhere in your program and run gnatmake with -bargs -E.