This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: problem with gdbserver on powerpc
- From: ravi kiran <rkmovva at yahoo dot com>
- To: Daniel Jacobowitz <drow at false dot org>, gdb at sourceware dot org
- Cc: Michael dot Snyder at palmsource dot dot dot com
- Date: Tue, 12 Sep 2006 04:28:29 -0700 (PDT)
- Subject: Re: problem with gdbserver on powerpc
- Reply-to: ravi kiran <rkmovva at yahoo dot com>
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 <drow@false.org>
To: ravi kiran <rkmovva@yahoo.com>
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