debugging threads

Sepherosa Ziehau sepherosa at gmail.com
Thu Dec 19 21:00:24 PST 2013


On Fri, Dec 20, 2013 at 12:20 PM, Pierre Abbat <phma at bezitopo.org> wrote:
> I now have the output of the test suite, but I'm not sure what to make of it.
> Can someone help? I think the relevant file is
> /usr/obj/dports/devel/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.threads/gdb.log .
>
> Executing on host: gcc ./gdb.threads/execl.c  -g  -lpthreads -lm   -o
> /usr/obj/dports/devel/gdb/work/gdb-7.6.1/gdb/testsuite/gdb.threads/execl
> (timeout = 300)
> /usr/libexec/binutils224/elf/ld.bfd: cannot find -lpthreads
> compiler exited with status 1


I think it should be -lpthread (no 's')

Best Regards,
sephe


> output is:
> /usr/libexec/binutils224/elf/ld.bfd: cannot find -lpthreads
>
> (I may have had to add a path to get a thread program to compile.)
>
> info threads
>   Id   Target Id         Frame
> * 1    process 19976     0x0000000800cd47a4 in nanosleep () from
> /usr/lib/libc.so.8
> (gdb) FAIL: gdb.threads/gcore-thread.exp: corefile: corefile contains at least
> two threads
>
> I think this is the problem I'm trying to find. There's a corefile which
> contains some threads, and gdb sees only one thread because it doesn't
> understand how we do threads.
>
> Pierre
> --
> .i toljundi do .ibabo mi'afra tu'a do
> .ibabo damba do .ibabo do jinga
> .icu'u la ma'atman.
>



-- 
Tomorrow Will Never Die



More information about the Users mailing list