This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Trouble with gdbserver from gdb-5.3, glibc-2.3.2 on ppc32
>Now that the power is back on(and our network is up and runnig again),
>I looked again and indeed its statically linked. I'll try dynamically
>linking it and see what happens.
Ok, my applications runs if its dynamically linked, but if I debug it
using gdb-5.3/gdbserver I get the following:
(gdb) set solib-absolute-prefix /dev/null
(gdb) set solib-search-path /usr/local/wave/x-ppc-linux2/powerpc-linux/lib
(gdb) tar remo 10.1.1.3:3001
Remote debugging using 10.1.1.3:3001
0x3000f430 in ?? ()
(gdb) i b
No breakpoints or watchpoints.
(gdb) b main
Breakpoint 4 at 0x10001eb0: file ../mn/mn.c, line 709.
(gdb) c
Continuing.
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
[New Thread 16384]
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
Error while reading shared library symbols:
DW_FORM_strp pointing outside of .debug_str section
[Switching to Thread 16384]
Breakpoint 4, main (argc=3, argv=0x7ffffe04) at ../mn/mn.c:709
(gdb) i sh
>From To Syms Read Shared Object Library
0x0ff732dc 0x0ffa3994 Yes /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libm.so.6
0x0fefc0f4 0x0ff05140 Yes /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libpthread.so.0
0x0fdbea20 0x0feb64e4 No /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6
0x30001e00 0x300126f0 No /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/ld.so.1
(gdb) i thr
* 1 Thread 16384 main (argc=3, argv=0x7ffffe04) at ../mn/mn.c:709
(gdb) s
(gdb) s
(gdb) c
Continuing.
[New Thread 32769]
Program received signal ?, Unknown signal.
[Switching to Thread 32769]
0x0fdd4d5c in ?? ()
from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6
(gdb) where
#0 0x0fdd4d5c in ?? ()
from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6
(gdb) i thr
* 2 Thread 32769 0x0fdd4d5c in ?? ()
from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6
1 Thread 16384 0x0fdd4d5c in ?? ()
from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6
(gdb) disp/3i $pc
1: x/3i $pc
0xfdd4d5c: mfcr r0
0xfdd4d60: mr r31,r3
0xfdd4d64: andis. r9,r0,4096
(gdb) si
And gdb never comes back to me(whether I us step, stepi, continue, and
it is interruptable with a C-c, but the pc is still at 0xfdd4d5c).
Any suggestions as to why its not executing under gdb are highly appreciated!
--
Peter Barada Peter.Barada@motorola.com
Wizard 781-852-2768 (direct)
WaveMark Solutions(A Motorola Company) 781-270-0193 (fax)