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.

CCS/CODECOMPOSER: CPP Debugging, example: unsorted_map

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Code Composer Studio

Hi,

currently, I am facing the problem that I cannot debug properly my cpp application, the debug symbols are not resolved correctly. Do I need to add any further ecplise debug plugins? The listed hashtable is my unsorted map in this case:

  • Small edit: what I am also missing is the autocomplete function regarding the cpp features.
  • Hello Volker,
    What version of CCS are you using? There is a known issue with C++ support in CCSv8.2 that was fixed in CCSv8.3. Though your first issue may not be related, I'm pretty sure the second issue is. If you are not already on 8.3, It would be good to upgrade to it and see if it helps with some of the issues.

    Thanks
    ki
  • Hi Ki,

    thanks for your support. The upgrade to version 8.3 solves the issue with the auto-completion. 

    However, the debug issue remains. As far as I understand, debugging std container with the gdb is not straightforward. I saw it working in another IDE so I am curious if it is easily solvable with CCS.

  • Thanks for trying 8.3. I am not surprised at the outcome. I suspected the second issue to be resolved, but not the first one. Our C++ GCC support still has some issues and it looks like a bug on our end. If you can provide a small, reproducible test case (source and executable), that would be very helpful.

    Thanks
    ki
  • Hi Ki,

    thanks for your feedback. I attached a CCS project to reproduce the issue. I took a TM4C1294 evaluation board and the basic bigtime example from your resource explorer. The used methods come from your provided libcxx library. 

    Note the usage of the std::cout does also not work here, but the System_printf functionality does.

    To see the debug output, just set a breakpoint at the beginning of the for - loop and look for the content of the map (see picture at the start post).

    A further remark: when building the sysbios, four warnings are reported by your compiler by default.

    I hope that helps.

    Volker

    unordered_map_EK_TM4C1294XL_TI.zip

  • Thank you for the test case. I can easily reproduce the issue. I have filed a bug. The tracking ID is: CCBT-2384

    Thanks
    ki
  • Hi Ki,

    thanks again for your feedback. Just a short question as I am not that deep into it: is this an IDE or a compiler problem? Regarding the mentioned cout problematic I will open another thread. 

    Is there a possibility for me to see the progress to this tracking ID? Do I have access to the bug tracker?

    I accepted your answer, thanks again for your effort.

    Volker

  • Volker Weber said:
    is this an IDE or a compiler problem?

    We are not sure yet. It is assigned to the CCS team for now but may get reassigned.

    Volker Weber said:
    Is there a possibility for me to see the progress to this tracking ID? Do I have access to the bug tracker?

    yes, please look below at my signature for a link to the bug tracker portal

    Thanks

    ki