I am debugging a huge C source code, and it has many macro definition. currently there is a segmentation fault is occurring at a macro. I want to be able to debug macro, step in macro definition just like as a function. I tried that
./configure debugflags="-gdwarf-2 -g3"
make
but this is not working, make is failing. Without above option it compile correctly, but could not debug macro.
How can I debug macro?
-g3will include information about macros, but not enable you to step through them. The documentation doesn't indicate that you can. Your closest bet would be tostepiat an assembly instruction level.