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.

Adding breakpoint using symbol name (CCS 5)

In CCS 5, When I try to add breakpoint; I can either enter address or symbol name.

For example, in the following code (two function with the same name in different classes):

class MyClass1{ public: void start(); };

class MyClass2{ public: void start(); };

To put breakpoint at MyClass2::start, what is the symbol name?

When I use mangled name, CCS can't resolve the symbol to address. If I use full name MyClass2::start, CCS can't resolve the symbol to address.

If I add symbol `start` it put breakpoint at first occurrence of any function named start, so it put breakpoint at MyClass1::start.

Question:

How to add breakpoint using mangled symbol name?

  • Hi Yousf,

    Could it be that these symbols don't exist? I modified your example by adding a pair of braces after the start() functions, and reference each functions in my main() function at least once to prevent compiler optimization. I was able to set breakpoint with the symbol MyClass1::start.

    You can see what is the available symbols in the Modules view. Also, you can set symbolic breakpoint by right clicking on a symbol within the Modules view.

    Regards,
    Patrick