From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30451 invoked by alias); 11 Sep 2006 12:34:11 -0000 Received: (qmail 30438 invoked by uid 22791); 11 Sep 2006 12:34:11 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 11 Sep 2006 12:34:06 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GMkzE-0007aa-55; Mon, 11 Sep 2006 08:34:04 -0400 Date: Mon, 11 Sep 2006 12:34:00 -0000 From: Daniel Jacobowitz To: ravi kiran Cc: gdb@sourceware.org Subject: Re: problem with gdbserver on powerpc Message-ID: <20060911123403.GA28917@nevyn.them.org> Mail-Followup-To: ravi kiran , gdb@sourceware.org References: <20060905135746.GA32414@nevyn.them.org> <20060911103736.29979.qmail@web31912.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060911103736.29979.qmail@web31912.mail.mud.yahoo.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes 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-09/txt/msg00062.txt.bz2 On Mon, Sep 11, 2006 at 03:37:36AM -0700, ravi kiran wrote: > Thanks Daniel, > > I was able to debug my program to some extent but got struck as I can not fully use the debugger. Please take look at the issues > > Issue:1 can't make use of back-trace past-main on > I do get 2 different errors on different times of execution. > --------------------------------------------------------------------------------------------------------- > This GDB was configured as "--host=i686-pc-linux-gnu --target=powerpc-linux"... > (gdb) set backtrace past-main on > No symbol "backtrace" in current context. You didn't say what GDB version you are using. Apparently, it is too old. > (gdb) set solib-absolute-prefix /usr/local/powerpc-mozilla/lib/firefox-1.5.0.3 > (gdb) set solib-search-path /usr/local/powerpc-mozilla/lib/firefox-1.5.0.3 That's unlikely to be right. solib-search-path should be a directory containing libraries (if you need to use it at all, which you rarely do). solib-absolute-prefix should be a filesystem image, so a directory containing "lib" and "usr". > Issue 2: After running the program for sometime and check for bt > (gdb) bt full > #0 0x30008e5c in ?? () > No symbol table info available. This is probably related to the solib-absolute-prefix problem. -- Daniel Jacobowitz CodeSourcery