Hi, On Wed, Oct 25, 2006 at 11:03:44AM -0400, Daniel Jacobowitz wrote: > On Wed, Oct 25, 2006 at 04:45:29PM +0200, Robert Schwebel wrote: > > 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. > > Oh, right. Thread debugging of static applications using NPTL is > particularly problematic. Take a look at this, for starters: > > http://sourceware.org/bugzilla/show_bug.cgi?id=2696 We built a Toolchain with gcc4.1.1+glibc2.5+gdb-6.5.50.20061025 using the patch posted on http://sourceware.org/ml/libc-alpha/2006-03/msg00014.html and did the same test as already described in robert's mail again. Unluckiely the problems with static binary seems to still consist. On the host side gdb would stuck at first continue, while on the target side gdbserver prints something like "Cannot enable thread event reporting for [PID of the testapp]: generic error". I however noticed that the test can be run if there's no symboltable given on the host side. (say gdb is started without any parameter or arguments) In this case I can process between the continues sending SIGINT. I logged the outputs and used commands to a log file and enclose it in the attachment. > > -- > Daniel Jacobowitz > CodeSourcery Regards Luotao Fu -- Dipl.-Ing. Luotao Fu | 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