I wrote: > >If adding scope attributes every time more than one variable is declared > >adds to the already immense bulk of C++ debugging information, I'd > >prefer to live with the bug myself.
On Thu, Apr 05, 2007 at 05:36:57PM +0100, Rob Quill wrote: > Out of interest, why? I haven't looked into this properly yet, so I > don't know what problems it might cause. Will having this much more > debug info significantly slow down GCC/GDB? Will it have other > problems? The executables I am currently working on are 223 Mb and 341 Mb with -g, and these are smaller than some others I have to deal with. The test/debug/recompile loop I spend much of my life in lately is dominated by link time. The link time is strongly affected by the size of the debug information. So it's not the cost of the disk space, that's relatively cheap; it's the time increase caused by reading, writing, and processing more data. Now, it might turn out that adding additional dwarf records for every single declaration won't significantly increase the size of the debug information. But it is a consideration.