This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem with gdbserver on powerpc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]