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-Language: ENGLISH,UTF8 X-Google-Thread: 103376,1f4de3b2c0e80034 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!t-online.de!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: addr2line and shared libraries References: From: Ludovic Brenta Date: Fri, 21 May 2004 15:35:52 +0200 Message-ID: <87zn81hphj.fsf@insalien.org> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:/nRNAJS9gV+YiIxsQXqtQhSJET8= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Organization: Tiscali bv NNTP-Posting-Date: 21 May 2004 15:34:43 CEST NNTP-Posting-Host: 83.134.238.201 X-Trace: 1085146483 dreader2.news.tiscali.nl 41761 83.134.238.201:34723 X-Complaints-To: abuse@tiscali.nl Xref: controlnews3.google.com comp.lang.ada:744 Date: 2004-05-21T15:34:43+02:00 List-Id: "Sébastien" Thoos writes: > I am trying to find out how to use the addr2line command with shared > librairies. > > I have non-symbolic output but can't get a complete symbolic > output. I stop having source information as soon as the code enters > the shared library. It looks like you have compiled your shared libraries without dbugging symbols. If you use shared libraries straight from your distribution, chances are they've been stripped of their debugging symbols; this is the policy on Debian, for example. On Debian, as a matter of policy, the -dev package for each library provides a static library with debugging symbols. If you link against it, addr2line should work. I can't speak for other distros; you may have to recompile the library. -- Ludovic Brenta.