This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to debug multi-threaded application with GDB?

Other Parts Discussed in Thread: AM1808, AM1707

Hello,

 

I use AM1808 EVM with latest Sitara Linux.

Software Development Environment - CCS 5.0.3 , build tools - Code Sourcery G++ 2011.03-65.

When I try to debug my multi-threaded application on the target, I noticed the following:

1) The debugger works fine with main application thread;

2) When I set the breakpoints in other application threads, the debugger does not stop there (though I see the indication in the debugger window that the threads were activated);

3) Just to make sure that my threads are not messed up, I added printouts to STDOUT from other threads - all printouts work OK. It means there are no problems with the threads execution.

So my questions are:

1) Are there any flags, or options in the GDB to enable multi-threaded debugging?

2) What should I do to enable it?

3) If it is not possible to do with GDB, what other options do I have?

 

Regards,

Slavik