Preserving preprocessor symbols for debugging purposes

22.10.2007 at 12:12

I have spent half of the weekend debugging a bug in tcc without much progress so far. Anyway one thing which is quite useful while debugging an application which uses preprocessor symbols (#defines etc) is to make them available to gdb. The following options tell gcc to embed the required debugging information in the executable.

gcc -gdwarf-2 -g3 [other options as needed]


Comments (0)

There are currently no comments available