阅读背景:

如何使用gdb逐步执行宏扩展的每一行

来源:互联网 

i am having a macro whose definition runs into around 50 lines and has lot of 'if else' statements. This macro def'n appears in a .h file. I am running 'gdb in TUI mode', but when the execution reaches that macro, the code window goes blank and returns back only after the macro code gets executed. I want to see line by line execution of the full macro code. Please let me know how can that be done (one way is to replace the macro with its definition in the code and then recompile it. i don't want to use this option as there are several such macros in my code). i am having a macro whose definition runs into




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: