AnsweredAssumed Answered

Help needed to debug a thread

Question asked by David Aldrich on Jul 23, 2012
Latest reply on Jul 24, 2012 by David Aldrich

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

Outcomes