From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6049 invoked by alias); 26 Feb 2010 18:12:54 -0000 Received: (qmail 6022 invoked by uid 22791); 26 Feb 2010 18:12:52 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Feb 2010 18:12:47 +0000 Received: from [192.168.178.20] (pass-5d864a89.pool.mediaWays.net [93.134.74.137]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LaYX5-1NKYd9126x-00mCV6; Fri, 26 Feb 2010 19:12:44 +0100 Subject: [Fwd: Re: Problems with debug packages on ubuntu 9.10 karmic] From: Thomas Mittelstaedt Reply-To: tmstaedt@t-mittelstaedt.de To: gdb@sourceware.org Content-Type: text/plain; charset="ISO-8859-1" Date: Fri, 26 Feb 2010 22:48:00 -0000 Message-ID: <1267207963.3435.15.camel@linux1> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-02/txt/msg00181.txt.bz2 Hallo, gdb experts, I just had a crash of firefox on ubuntu 9.10 karmic and a tool called apport-bug came up automatically to collect system information, among it a stack trace, which again contained no debugging symbols. Well, for some package like xulrunner, there were indeed no debugging symbols, but for libglib, for instance, they definitely existed. I had the same problems with my own build of gnome evolution and I helped myself by using "set sysroot ; set solib-search-path=...". How can I make sure that gdb picks up the symbols of libraries already loaded? I am running a recent cvs version of gdb 7.0. Thank you in advance for insights / clarifications! -------- Weitergeleitete Nachricht -------- > Von: Thomas Mittelstaedt > Reply-to: tmstaedt@t-mittelstaedt.de > An: ubuntu-devel-discuss@lists.ubuntu.com > Betreff: Re: Problems with debug packages on ubuntu 9.10 karmic > Datum: Tue, 09 Feb 2010 11:57:52 +0100 > > Am Montag, den 08.02.2010, 05:06 +0100 schrieb Thomas Mittelstaedt: > > Hallo, > > > > I have problems producing bug reports containing backtraces with all > > debug symbols. Even though I do have the dbg packages installed, gdb 7 > > doesn't pick them up automatically, neither for an installed app like > > rhythmbox nor for a custom build of gnome evolution. > > The non-stripped libraries get installed under /usr/lib/debug and I > > tried to use add-symbol-file, to load the symbols. And this procedure > > would only be partly successful, i.e. in the backtrace, some function > > calls of a library would show nicely while others would be just the > > usual '???'. > > > > See https://bugzilla.gnome.org/show_bug.cgi?id=606881 and > > https://bugzilla.gnome.org/page.cgi?id=trace.html&trace_id=220468. > > > > Any help appreciated! > > > > > > -- > > thomas > > > > Well, to answer my own question. > I used the following to load some (not all) symbols of > the debug version of the libraries via: > > (gdb) set sysroot foo # set sysroot to non-existent directory > (gdb) set solib-search-path /usr/lib/debug/:/usr/lib/debug/lib:... paths> > > Looks like gdb does not descent recursively into /usr/lib/debug, e.g. > for the debug version of /lib/libglib-2.0.so.0 to get its debug > information loaded, I had to add > /usr/lib/debug/lib to solib-search-path. > > See also in the gdb info documentation > "18.2 Debugging Information in Separate Files" > -- thomas