From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32659 invoked by alias); 23 Jan 2011 18:20:03 -0000 Received: (qmail 32648 invoked by uid 22791); 23 Jan 2011 18:20:02 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Jan 2011 18:19:41 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0NIJdY6017636 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 23 Jan 2011 13:19:39 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p0NIJbOd026382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 23 Jan 2011 13:19:39 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p0NIJb0w026368; Sun, 23 Jan 2011 19:19:37 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p0NIJZ6Y026360; Sun, 23 Jan 2011 19:19:35 +0100 Date: Sun, 23 Jan 2011 18:20:00 -0000 From: Jan Kratochvil To: Leon Pollak Cc: gdb@sourceware.org Subject: Re: Restarting gdbserver Message-ID: <20110123181935.GA25767@host1.dyn.jankratochvil.net> References: <201101201129.50875.leonp@plris.com> <201101231843.44877.leonp@plris.com> <20110123164837.GA16407@host1.dyn.jankratochvil.net> <201101232005.43430.leonp@plris.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201101232005.43430.leonp@plris.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-01/txt/msg00099.txt.bz2 On Sun, 23 Jan 2011 19:05:42 +0100, Leon Pollak wrote: > OK, to check myself and understand your explanation, I compiled the same > application in the "normal" Fedora 12 - it does show the backtrace. OK, so you do not have debug info in either case. But on x86* Fedora you can backtrace any system code even if you do not have the debug info installed. (This is not true for any x86* code but Fedora is using -fasynchronous-unwind-tables so it can backtrace even -fomit-frame-pointer code without debug info.) On arm I guess - I do not know arm - you need debug info for the backtrace. But this is very montavista distro specific question and in fact offtopic here. > From To Syms Read Shared Object Library [...] > 0x008145e0 0x00820518 Yes (*) /lib/libpthread.so.0 [...] > (*): Shared library is missing debugging information. > (gdb) bt > #0 0x00110430 in __kernel_vsyscall () > #1 0x0081a22c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 This record shows the debug info is missing. You can try `debuginfo-install glibc' on Fedora to get the debug info. Still it does not affect the capability of backtracing on x86*. > And I searched my Fedora installatoin - no *debug*.so at all. You would need to install it first: # repoquery -q --enablerepo='fedora*-debuginfo' glibc-debuginfo glibc-debuginfo-0:2.12.90-17.i686 # debuginfo-install glibc # ls -lL /usr/lib/debug/lib/libpthread.so.0.debug -r--r--r-- 1 root root 708656 Dec 14 17:53 /usr/lib/debug/lib/libpthread.so.0.debug (Adjusted from x86_64 as you seem to run 32bit.) Regards, Jan