Help needed to debug a thread

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Help needed to debug a thread

跳至解决方案
1,135 次查看
DavidA2012
Contributor III

Hi 

 

I am trying to debug the hello_reflector example provided in the P4080 Linux SDK. The example launches multiple threads from main() by calling pthread_create().

 

I can step through the code until the pthread_create() line but, if I set a breakpoint in the thread's function, and continue execution from the line of pthread_create(), the debugger termninates. The debugger does not stop at the breakpoint in the thread function.

 

If I run the code outside of the debugger it runs ok.

 

What is the proper procedure for running to, and stopping at, a line in a newly created thread please?

 

Best regards

 

David

标签 (1)
0 项奖励
回复
1 解答
863 次查看
DavidA2012
Contributor III

Hi

 

Freescale informed me that In order to debug applications that use pthreads, it is necessary to compile unstripped versions of libraries libpthread.so.0 and ld.so.1. This fixed my problem.

 

David

在原帖中查看解决方案

0 项奖励
回复
1 回复
864 次查看
DavidA2012
Contributor III

Hi

 

Freescale informed me that In order to debug applications that use pthreads, it is necessary to compile unstripped versions of libraries libpthread.so.0 and ld.so.1. This fixed my problem.

 

David

0 项奖励
回复