* problem with gdbserver on powerpc
@ 2006-09-05 6:42 ravi kiran
2006-09-05 13:57 ` Daniel Jacobowitz
0 siblings, 1 reply; 7+ messages in thread
From: ravi kiran @ 2006-09-05 6:42 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: problem with gdbserver on powerpc
2006-09-05 6:42 problem with gdbserver on powerpc ravi kiran
@ 2006-09-05 13:57 ` Daniel Jacobowitz
2006-09-11 10:37 ` ravi kiran
0 siblings, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-09-05 13:57 UTC (permalink / raw)
To: ravi kiran; +Cc: gdb
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: problem with gdbserver on powerpc
2006-09-05 13:57 ` Daniel Jacobowitz
@ 2006-09-11 10:37 ` ravi kiran
2006-09-11 12:34 ` Daniel Jacobowitz
2006-09-11 17:31 ` Michael Snyder
0 siblings, 2 replies; 7+ messages in thread
From: ravi kiran @ 2006-09-11 10:37 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: problem with gdbserver on powerpc
2006-09-11 10:37 ` ravi kiran
@ 2006-09-11 12:34 ` Daniel Jacobowitz
2006-09-12 11:28 ` ravi kiran
2006-09-11 17:31 ` Michael Snyder
1 sibling, 1 reply; 7+ messages in thread
From: Daniel Jacobowitz @ 2006-09-11 12:34 UTC (permalink / raw)
To: ravi kiran; +Cc: gdb
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: problem with gdbserver on powerpc
2006-09-11 12:34 ` Daniel Jacobowitz
@ 2006-09-12 11:28 ` ravi kiran
0 siblings, 0 replies; 7+ messages in thread
From: ravi kiran @ 2006-09-12 11:28 UTC (permalink / raw)
To: Daniel Jacobowitz, gdb; +Cc: Michael.Snyder
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: problem with gdbserver on powerpc
2006-09-11 10:37 ` ravi kiran
2006-09-11 12:34 ` Daniel Jacobowitz
@ 2006-09-11 17:31 ` Michael Snyder
1 sibling, 0 replies; 7+ messages in thread
From: Michael Snyder @ 2006-09-11 17:31 UTC (permalink / raw)
To: ravi kiran, Daniel Jacobowitz; +Cc: gdb
ravi kiran:
>(gdb) set backtrace past-main on
>A parse error in expression, near `past-main on'.
Hmmm... how old is your gdb? That command was added
in version 6.1, I think.
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <20060922145918.33509.qmail@web31912.mail.mud.yahoo.com>]
end of thread, other threads:[~2006-09-22 15:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-05 6:42 problem with gdbserver on powerpc ravi kiran
2006-09-05 13:57 ` Daniel Jacobowitz
2006-09-11 10:37 ` ravi kiran
2006-09-11 12:34 ` Daniel Jacobowitz
2006-09-12 11:28 ` ravi kiran
2006-09-11 17:31 ` Michael Snyder
[not found] <20060922145918.33509.qmail@web31912.mail.mud.yahoo.com>
2006-09-22 15:01 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox