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: 103376,9962f18891db3ff7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed.stueberl.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!LF.net!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Using Gnat.Traceback.Symbolic with gcc-3.4.3 Date: Sun, 06 Mar 2005 22:56:09 +0100 Message-ID: <87wtskbfra.fsf@deneb.enyo.de> References: <87hdjo7v26.fsf@insalien.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: albireo.enyo.de 1110146171 21991 212.9.189.177 (6 Mar 2005 21:56:11 GMT) X-Complaints-To: Cancel-Lock: sha1:tIOxsYHpepl/ijTXRsXaOh85yGU= Xref: g2news1.google.com comp.lang.ada:8774 Date: 2005-03-06T22:56:09+01:00 List-Id: * Ludovic Brenta: > libaddr2line.a is a library normally built from the binutils source > distribution. GNAT relies on it for sumbolic traceback of exceptions. > Unfortunately, I am not aware of any binary distribution of GNU/Linux > that ships libaddr2line.a. I am not even sure that recent versions of > binutils (as required by recent versions of GCC) support building > libaddr2line.a. IIRC, libaddr2line has never been part of the official binutils, and it's source code has not been released (probably by accident, but still). J�rgen Pfeifer wrote GNAT patches that invoke /usr/bin/addr2line to resolve the addresses. This approach avoids the dependency on the BFD library and is cleaner. Of course, it's a bit slower. I'm not sure what the Java front end does. This code should probably be reused.