Tool/software: TI C/C++ Compiler
Hello,
I'm trying to debug lambda-functions under CCS 8.1.0, compiling code using TI C6000 8.3.4 (the latest) compiler.
Here the simple test of lambda's working:
void callSomeFun(){ asm(" nop"); } int main(void) { auto lambda = []() { callSomeFun(); }; lambda(); BIOS_start(); /* does not return */ return 0; }
The problem is that I can not put a breakpoint inside of the lambda definition, only inside of callSomeFun's body:
and then, in the debug window I can see:
It seems to be some mangling name of the lambda which the appropriate debug symbol probably was not normally created by the compiler, and the debugger doesn't see it, so, perhaps, that why it's unable to put any breakpoint inside of the lambda.
If I make the lambda global its mangling name is quite different from the internal declaration, but the result is similar:
Are there any ways to solve the problem and make it possible to put breakpoints inside of lambdas' bodies?
Best regards,
Egor.