Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* thread-debuging with gdbserver on ARM/NPTL
@ 2006-10-24 18:29 Benedikt Spranger
  2006-10-24 18:34 ` Daniel Jacobowitz
  0 siblings, 1 reply; 6+ messages in thread
From: Benedikt Spranger @ 2006-10-24 18:29 UTC (permalink / raw)
  To: gdb

Hi,

trying to debug a simple multithreaded application with gdbserver on an
ARM eabi/NPTL based System leads to a completely confused gdbserver.

thread_code() {

BP2	do_thread_init();
	pthread_lock();
	do_thread_work();
	pthread_unlock();
}

main() {
	
	pthread_lock()
    	pthread_create()
BP1  	do_something()
	pthread_unlock()
}

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.

Benedikt Spranger


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-26 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24 18:29 thread-debuging with gdbserver on ARM/NPTL Benedikt Spranger
2006-10-24 18:34 ` Daniel Jacobowitz
2006-10-25 14:46   ` Robert Schwebel
2006-10-25 15:03     ` Daniel Jacobowitz
2006-10-26  9:55       ` Luotao Fu
2006-10-26 12:22         ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox