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,f5ce49ceb519648b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r16g2000vbn.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: addr2line i mingw gcc 4.4.0 Date: Fri, 26 Jun 2009 17:00:03 -0700 (PDT) Organization: http://groups.google.com Message-ID: <550a535e-eef9-4317-ac38-6ae915df6eed@r16g2000vbn.googlegroups.com> References: <86f46e08-56e0-4cc1-89be-93af2e7cad31@q37g2000vbi.googlegroups.com> NNTP-Posting-Host: 94.108.181.194 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1246060803 6288 127.0.0.1 (27 Jun 2009 00:00:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 27 Jun 2009 00:00:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r16g2000vbn.googlegroups.com; posting-host=94.108.181.194; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030810 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6656 Date: 2009-06-26T17:00:03-07:00 List-Id: Bj=F6rn Lundin wrote on comp.lang.ada: > On 26 Juni, 22:56, sjw wrote: > > >> Looking in the ACT versions, the file is there, along with other > >> lib?.a > > Could you just copy from there? > > Should perhaps mentioned that I already tried that. Links OK but gives > Program_Error at runtime, > some Access_Violation thingy > Also, I would prefer to have it from the gcc I'm using libaddr2line.a is an invention from AdaCore several years ago; it is a patch against the program "addr2line" in certain versions of binutils, not GCC. I am not aware of any binary distribution of it apart from AdaCore's own. In Debian, I've patched GCC so that it supports symbolic tracebacks by calling addr2line in an external process rather than using libaddr2line in-process. An early version of this patch was in the Ada for Linux Team distribution by J=FCrgen Pfeiffer for Red Hat Linux 6 (in 1999). 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. HTH -- Ludovic Brenta.