Help needed to debug a thread

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Help needed to debug a thread

ソリューションへジャンプ
1,133件の閲覧回数
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 解決策
861件の閲覧回数
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 返信
862件の閲覧回数
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 件の賞賛
返信