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=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,f5ce49ceb519648b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!g6g2000vbr.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: addr2line i mingw gcc 4.4.0 Date: Sat, 27 Jun 2009 09:24:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <86f46e08-56e0-4cc1-89be-93af2e7cad31@q37g2000vbi.googlegroups.com> <550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1246119846 32032 127.0.0.1 (27 Jun 2009 16:24:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 27 Jun 2009 16:24:06 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g6g2000vbr.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6671 Date: 2009-06-27T09:24:06-07:00 List-Id: On Jun 27, 12:28=A0pm, Stephen Leake wrote: > Ludovic Brenta writes: ... > > So, I think you can have symbolic tracebacks in mingw in one of two > > ways: patch binutils to build libaddr2line.a then link libgnat against > > it; or patch libgnat to use the same method as on Debian. > > A third alternative is to output numeric traceback from the failing > program, and then use addr2line (the program) to get the symbolic > traceback in a separate manual step. > > I use this approach. It reduces the amount of output significantly; > there are many times that a traceback is generated by I don't want to > peruse it. > > Ludovic's approach simply automates this. On Darwin, there's a native program atos which does the same as addr2line. If your target is VxWorks symbolic tracebacks don't work at all; you have to use addr2line (well, in VxWorks 5 executables are relocatable but stack addresses are absolute; so you actually use a wrapper {powerpc}-wrs-vxworks-vxaddr2line which works by referencing the runtime address of adainit to its offset in the executable).