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.

Why cannot I set the S/W BP?



Hello, I use the TMSC6678 LE and run a program in which  8 cores work together, and I want to use the breakpoints when debudding it. Fist in the C/C++ perspective I set the breakpoint by right-click the mouse, then in the breakpoint view appear the information of the breakpoint, but in the breakpoint properties, it turns out that "Breakpoint is not attached to an active debug context. Please launch the debug session where this breakpoint is attached."

Nevertheless, I debug the program, and in the CCS debug perspective I press the "Resume" in debug view, the program does;t stop at the expected place and run till the end.

Could anyone explain the steps of setting the BP in CCSv5 to me, and find out the result of the problems? Thanks a lot!!

  • Kang Yang said:
    Fist in the C/C++ perspective I set the breakpoint by right-click the mouse, then in the breakpoint view appear the information of the breakpoint, but in the breakpoint properties, it turns out that "Breakpoint is not attached to an active debug context. Please launch the debug session where this breakpoint is attached."

    This message is expected when you are in the CCS Edit perspective and go into the Breakpoint properties dialog. As noted in the message, if you launch a debug session and go into the CCS Debug perspective you should be able to go into the Properties and modify it.

    When in the debug perspective, did you verify that the breakpoint is actually being set in the editor view? It should appear as a blue dot in the margin of the editor and I don't think I see it in your screenshots. Are you setting the breakpoint for a specific core? This wiki page has some good information on debugging multi-core environments which could be a helpful reference.

  • Hi,AartiG! Thanks for your answer!  I checked up the building properties and in the Compiler Options I found that the build options didn't include the "--symdebug:dwarf", so CCS was not finding any symbolic debug info for the outfile that I had loaded.  Thanks again!