maybe_suppress_debug_info

Devang Patel dpatel@apple.com
Mon Apr 28 17:50:00 GMT 2003


maybe_suppress_debug_info() is used in C++ to suppress debugging 
information
generation for C++ classes (as an optimization).  
note_debug_info_needed() is
used to enable it again, but all note_debug_info_needed() calls are 
inside #if 0 code.
This causes GCC to miss debugging information for virtual C++ classes
(at least in stabs).

Now comments in code is somewhat confusing. It says it is _slightly_ 
useful for BINCL,
but we are dropping info in this case. Comment also say that it is not 
useful with DWARF.

I am thinking of not using maybe_suppress_debug_info() with stabs 
format when BINCLs are
used, to get all debugging information for virtual C++ classes.

thoughts ?

Thanks,
-Devang



More information about the Gcc mailing list