From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7593 invoked by alias); 11 Nov 2006 22:06:49 -0000 Received: (qmail 7583 invoked by uid 22791); 11 Nov 2006 22:06:48 -0000 X-Spam-Check-By: sourceware.org Received: from mk-smarthost-2.mail.uk.tiscali.com (HELO mk-smarthost-2.mail.uk.tiscali.com) (212.74.114.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 11 Nov 2006 22:06:42 +0000 Received: from mk-smarthost-9.mail.uk.tiscali.com ([212.74.114.48]) by mk-smarthost-2.mail.uk.tiscali.com with ESMTP; 11 Nov 2006 22:06:39 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CALTXVUXUSnIwh2dsb2JhbACMTQIJDio Received: from 88-106-233-12.dynamic.dsl.as9105.com ([88.106.233.12]:57149 helo=[192.168.1.14]) by mk-smarthost-9.mail.uk.tiscali.com with esmtp (Exim 4.30) id 1Gj0yC-000NLS-Et for gdb@sourceware.org; Sat, 11 Nov 2006 22:05:00 +0000 Message-ID: <455649D4.6050706@jguk.org> Date: Sat, 11 Nov 2006 22:06:00 -0000 From: Jon Grant User-Agent: Thunderbird 1.5.0.7 (X11/20060922) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: Two gdb 6.4 usage queries References: <454578F3.9030703@jguk.org> In-Reply-To: <454578F3.9030703@jguk.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00077.txt.bz2 Hello, Don't think I missed any reply.. I wonder if anyone could help me with some info on how solve the problems? Please include my email address in any reply. Kind regards Jon Jon Grant elucidated on 30/10/06 04:00: > Hello, > > I have to queries, I hope someone will be able explain or point me to > documentation. > (I am running Kubuntu 6.06 on a 32bit Althon.) > > 1) Shared library methods are relocated when they are used by a program, > is there a way to view the present running address of these shared > library functions/methods from gdb? > > 2) I would like to get to see the same backtrace that the kde crash > handler has generated > > callstack like: > [KCrash handler] > #6 0x00000000 in ?? () > #7 0xb7182f3e in QApplication::internalNotify () from > /usr/lib/libqt-mt.so.3 > #8 0xb718313a in QApplication::notify () from /usr/lib/libqt-mt.so.3 > #9 0xb78617ab in KApplication::notify () from /usr/lib/libkdecore.so.4 > #10 0xb71141c5 in QApplication::sendSpontaneousEvent () > from /usr/lib/libqt-mt.so.3 > > > When I attach the to crashed process with gdb all I can get is this: > > $ gdb /usr/bin/ark 6582 > GNU gdb 6.4-debian > Copyright 2005 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i486-linux-gnu"...(no debugging symbols found) > Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". > > Attaching to program: /usr/bin/ark, process 6582 > (no debugging symbols found) > 0xffffe410 in __kernel_vsyscall () > (gdb) bt > #0 0xffffe410 in __kernel_vsyscall () > #1 0xb7d09110 in ?? () > #2 0xb7d08f3c in ?? () > #3 0xbfc11bb4 in ?? () > #4 0xbfc11bb4 in ?? () > #5 0x00000000 in ?? () > > Thanks for any help. > > Please include my email address in any reply. > > Kind regards > Jon >