Is there a GCC pragma to override generation of debug info (-g) for some section of code?
I'd like to include some debug information 开发者_高级运维in an application, but hide certain symbols from appearing. Is there any way to do this with GCC 4.0 (or 4.2)? This is on OSX.
Move all such code into a single source file and compile that without -g
. Note that you can't omit global symbol names for obvious reasons.
精彩评论