|
List Info
Thread: problem with gdbserver on powerpc
|
|
| problem with gdbserver on powerpc |

|
2006-09-05 06:42:10 |
Hi Guys,
I built the gdbserver like this --host=powerpc-linux
My set up like below.
Client: intel-linux PC
Target: Powerpc-linux box
on clinet machine: I open a telnet terminal to the target
and
./gdbserver clientmcIP:2345 --attach TaskID
Problem
-----------
the moment I do that The process(say xclock)is getting into
stopped state. (from R to T). same goes for any task that is
attached.
However gdbserver continue to run.
ont he host machine the 'bt' gives message like 0x0ff4a210
in ?? ()
What could be the reasons for that?
Warm Regards,
Ravi
|
|
| problem with gdbserver on powerpc |

|
2006-09-05 13:57:46 |
On Mon, Sep 04, 2006 at 11:42:10PM -0700, ravi kiran wrote:
> ont he host machine the 'bt' gives message like
0x0ff4a210 in ?? ()
It sounds like you don't have GDB pointing at the shared
libraries for
your target system, so you can't see where you're stopped.
Try "set
solib-absolute-prefix".
--
Daniel Jacobowitz
CodeSourcery
|
|
| problem with gdbserver on powerpc |

|
2006-09-11 10:37:36 |
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.
(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
(gdb) target remote **.***.**.**:2345
Remote debugging using **.***.**.**:2345
0x30012054 in ?? ()
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
(gdb)
Issue 2: After running the program for sometime and check
for bt
(gdb) bt full
#0 0x30008e5c in ?? ()
No symbol table info available.
(gdb)
However, I do get backtrace full working at later point of
time while the thread goes into do while loop forever.
(gdb) set backtrace past-main on
A parse error in expression, near `past-main on'.
Please do let me know where I am mistaking.
regards,
Ravi
----- Original Message ----
From: Daniel Jacobowitz <drow false.org>
To: ravi kiran <rkmovva yahoo.com>
Cc: gdb sourceware.org
Sent: Tuesday, 5 September, 2006 10:57:46 PM
Subject: Re: problem with gdbserver on powerpc
On Mon, Sep 04, 2006 at 11:42:10PM -0700, ravi kiran wrote:
> ont he host machine the 'bt' gives message like
0x0ff4a210 in ?? ()
It sounds like you don't have GDB pointing at the shared
libraries for
your target system, so you can't see where you're stopped.
Try "set
solib-absolute-prefix".
--
Daniel Jacobowitz
CodeSourcery
|
|
| problem with gdbserver on powerpc |

|
2006-09-11 12:34:04 |
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
|
|
| problem with gdbserver on powerpc |

|
2006-09-12 11:28:29 |
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
|
|
| problem with gdbserver on powerpc |

|
2006-09-12 11:28:29 |
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
|
|
[1-6]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|