NPTL on ppc (was: pthreads debug with gdbserver)

Linh Dang linhd@nortelnetworks.com
Mon Dec 6 18:41:00 GMT 2004


Daniel Jacobowitz <drow@false.org> wrote:
>
> Take a look at the source code to gdbserver.  Andreas, now I
> remember why I enabled thread_db support on a per-target basis -
> there are other support routines that have to be written.

Hi Daniel and Andreas,

Does gdbserver works with NPTL on ppc32? I use 6.3.50 and I keep
getting on the target side:

        gdbserver 47.129.74.85:8888 p_greetings2
        Process p_greetings2 created; pid = 288
        Listening on port 8888
        Remote debugging from host 47.129.74.85
        error = 0
        error = 0
        Cannot find new threads: generic error
        error = 0
        Cannot find new threads: generic error
        error = 0
        Cannot find new threads: generic error


and on the host side:

        target extended-remote 47.135.196.213:8888
        Remote debugging using 47.135.196.213:8888
        0x30011e28 in ?? ()
        (gdb) b main
        Breakpoint 1 at 0x1000080c
        (gdb) info b
        Num Type           Disp Enb Address    What
        1   breakpoint     keep y   0x1000080c <main+28>
        (gdb) c
        Continuing.
        Ignoring packet error, continuing...
        Ignoring packet error, continuing...
        Ignoring packet error, continuing...

        Breakpoint 1, 0x1000080c in main ()
        (gdb) info shared
        From        To          Syms Read   Shared Object Library
        0x0ffd17e4  0x0ffdbd4c  Yes         /linux-tools-2.6/powerpc-linux/lib/libpthread.so.0
        0x0fe9b060  0x0ff850a4  Yes         /linux-tools-2.6/powerpc-linux/lib/libc.so.6
        0x30001ee0  0x300155d0  Yes         /linux-tools-2.6/powerpc-linux/lib/ld.so.1
        (gdb)


Thanx
-- 
Linh Dang



More information about the Gdb mailing list