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 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!m19g2000yqk.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?bj=F6rn_lundin?= Newsgroups: comp.lang.ada Subject: Re: addr2line i mingw gcc 4.4.0 Date: Sat, 27 Jun 2009 11:50:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5f0d5766-c357-4068-a21f-a2a11e172022@m19g2000yqk.googlegroups.com> References: <86f46e08-56e0-4cc1-89be-93af2e7cad31@q37g2000vbi.googlegroups.com> <550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com> NNTP-Posting-Host: 78.82.58.64 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1246128654 27690 127.0.0.1 (27 Jun 2009 18:50:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 27 Jun 2009 18:50:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m19g2000yqk.googlegroups.com; posting-host=78.82.58.64; posting-account=3_reEwoAAAC163IAIrx427KYmwahFuh9 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.0.11) Gecko/2009060309 Ubuntu/8.04 (hardy) Firefox/3.0.11,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6675 Date: 2009-06-27T11:50:52-07:00 List-Id: On 27 Juni, 18:24, sjw wrote: > 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 agains= t > > > it; or patch libgnat to use the same method as on Debian. Hmm, this is way over my head... > > 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. This I recognize. I had to do this with the Gnat pro 5.Something, on AIX, before the symbolic traceback was fixed there, a couple of years ago. This seems to be the most reasonably approach at this time. > 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; My target is Windows on x86 but thanks for the heads up Reason I'm not using the gnat gpl version is that I try to use the same compiler-suite for the ada code as wells as the c++ code. This is now on visual studio, but I think its overkill for 5 c++ files compared to 2000+ ada-files. Or I just have to have 2 different gcc onboard, GPL for ada and FSF for c++. But it's not ideal. Thank you all for the input /Bj=F6rn bj=F6rn lundin