Reputation: 2299
I am trying to debug an application that makes extensive use of C macros (nested macros of macros). It gives "use of undeclared identifier" error.
Is there any way to make LLDB debugger recognize and evaluate it properly? I can decompose the macros myself and write the full expression but it's very tedious and error prone.
Upvotes: 10
Views: 3013
Reputation: 3329
Unfortunately this is not gonna happen because we get no debug info for macros from the compiler, which kinda makes sense because macros disappear after the preprocessor does its deed and before the compiler converts your sources to machine code.
Upvotes: 3