Altera_Forum
Honored Contributor
15 years agoDebug multi thread application with Gdbserver on uClinux
Hi,
I'm trying to debug a simple multi thread application with Gdbserver on uClinux no-mmu. The board is ALTERA NEEK-evb. I can debug with no problem a process without threads. when trying to create a new thread i get the following error: ptrace: Input/output error. and the debug session is stuck. After some debug i've been able to get the following backtrace of the stuck system :# 0 0x00725120 in __linuxthreads_create_event ()# 1 0x00723e1c in __pthread_initialize_manager ()# 2 0x00723fac in pthread_create ()# 3 0x007201a4 in main () Another thing : when i run the program without gdb, i can see that the threads created run and output (printf) to the terminal but my main thread (the one that created the other thread) does not output anything and it seems like he is not running. Is there any limitation on debugging threads? Do i need to configure something in the environment in order to debug threads? Please advise. Regards, Raviv