debugging threads

Pierre Abbat phma at
Thu Dec 19 20:20:56 PST 2013

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 
(timeout = 300)
/usr/libexec/binutils224/elf/ld.bfd: cannot find -lpthreads
compiler exited with status 1
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 
(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.

.i toljundi do .ibabo mi'afra tu'a do
.ibabo damba do .ibabo do jinga
.icu'u la ma'atman.

More information about the Users mailing list