On Tue, Oct 24, 2006 at 02:34:04PM -0400, Daniel Jacobowitz wrote: > On Tue, Oct 24, 2006 at 08:29:33PM +0200, Benedikt Spranger wrote: > > Attaching gdb to gdbserver, set the above breakpoints and issue "cont", > > then the program stops at breakpoint BP1. BP2 is never reached, although > > the thread is visible via "ps" on the target system. The thread is stuck > > in sys_futex and not as expected in the ptrace breakpoint trap. Also gdb > > does not show that the thread was created. > > > > This can be reproduced with glibc 2.3.6 -> 2.5, kernel 2.6.14 -> > > 2.6.19-rc2, gcc 3.4 -> 4.1.1 and binutils up to cvs-latest. > > Well, it works just fine for me, so you may want to investigate your > setup. Have you set solib-absolute-prefix, the most frequent problem? > Check if "info shared" and "info threads" show sensible output. Here are some more details about the problem. It turned out that it works if you link against libpthread dynamically and doesn't with -static. The test program and log reports of the static and dynamic case are attached. Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9