From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25973 invoked by alias); 12 Sep 2006 11:28:38 -0000 Received: (qmail 25959 invoked by uid 22791); 12 Sep 2006 11:28:36 -0000 X-Spam-Check-By: sourceware.org Received: from web31903.mail.mud.yahoo.com (HELO web31903.mail.mud.yahoo.com) (68.142.207.83) by sourceware.org (qpsmtpd/0.31) with SMTP; Tue, 12 Sep 2006 11:28:31 +0000 Received: (qmail 38652 invoked by uid 60001); 12 Sep 2006 11:28:29 -0000 Message-ID: <20060912112829.38650.qmail@web31903.mail.mud.yahoo.com> Received: from [202.214.28.60] by web31903.mail.mud.yahoo.com via HTTP; Tue, 12 Sep 2006 04:28:29 PDT Date: Tue, 12 Sep 2006 11:28:00 -0000 From: ravi kiran Reply-To: ravi kiran Subject: Re: problem with gdbserver on powerpc To: Daniel Jacobowitz , gdb@sourceware.org Cc: Michael.Snyder@palmsource.dot.com In-Reply-To: <20060911123403.GA28917@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00064.txt.bz2 The version is 6.4. I did cross-compile gdbserver with with gcc3.4.1 and glibc-2.3.3(crosstool generated tool kit) I am using the thread_db and libpthread solibs generated by the tool. Still I get the gdb: error initializing thread_db library: version mismatch between libthread_db and libpthread. Do we need to keep the same libraries in the host machine also?? Regards, Ravi ----- Original Message ---- From: Daniel Jacobowitz To: ravi kiran Cc: gdb@sourceware.org Sent: Monday, 11 September, 2006 9:34:04 PM Subject: Re: problem with gdbserver on powerpc 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