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.

Debugging Freezes When Stepping over Sem_post

Other Parts Discussed in Thread: OMAPL138

Hello,

I'm using CCS5.0.3 to connect a remote target (linux 2.6.x) via TCP connection for a remote GDB debug.

Debugging on single-process program is good, can step, set breakpoints and view memory /variables/ registers.

But when switching to a multi-threads program, debugging always freezes when stepping over sem_post() (to wake up a lower priority thread).

How to avoid it?

  • Hi all,

    I rebuilt the same source code (the multi-thread program, semaphore is used to synchronize threads, purely coded for evaluating CCS5.0.3) with glibc.  Previously it's built with uclibc.

    This time only the attached thread is displayed in Debug window.

    Program is terminated by signal SIGTRAP if breakpoint is set to other threads' source code.

    Only one thread is attached everytime.

    Is multi-thread remote debugging not supported by CCS5.0.3?

         gdb version: GNU gdb (Sourcery G++ Lite 2011.03-41) 7.2.50.20100908-cvs

         attach command: gdbserver --attach 192.168.10.1:2345 TID

         target board: OMAPL138

     

    Thanks.

    Best Regards,

    Phoebe

    hui zhu said:

    Hello,

    I'm using CCS5.0.3 to connect a remote target (linux 2.6.x) via TCP connection for a remote GDB debug.

    Debugging on single-process program is good, can step, set breakpoints and view memory /variables/ registers.

    But when switching to a multi-threads program, debugging always freezes when stepping over sem_post() (to wake up a lower priority thread).

    How to avoid it?

     

     

  • Anyone can help on this? We are blocked...It would be much appreciated if any comment.

     

    Best Regards,

    Phoebe