[Libreoffice] [PATCH] Use -gdwarf-4 by default if possible (was Re: Even more debugging info)

Lubos Lunak l.lunak at suse.cz
Thu Dec 15 08:07:24 PST 2011


On Thursday 08 of December 2011, Lubos Lunak wrote:
> On Wednesday 07 of December 2011, Michael Meeks wrote:
> > On Thu, 2011-12-01 at 17:35 +0100, Lubos Lunak wrote:
> > > >  So -gdwarf-4 looks like a sensible default to me. Even if not, I'm
> > > > going to use it (quick hack: modify your LO make script to add it to
> > > > $CXXFLAGS).
> > >
> > >  So, how about the attached patch? If it's ok, I will still wait until
> > > 3.5 has been branched off, just in case. I also have no idea if this
> > > should be enabled for the WNT_INTEL_GCC target too, but it and unxgcc
> > > were the only two to use -ggdbX flags.
> >
> > 	Sounds lovely to me :-) if it makes building with symbols smaller and
> > faster it sounds ideal.
>
>  Pushed, now that 3.5 has been branched. If there are any problems with
> this, yell.

 Just for the record, I've reverted this.

 Reportedly even gdb 7.1 is not new enough for this, and moreover while this 
in theory is supposed to make gdb faster and use less memory, in practice the 
handling in gdb seems to have problems that actually make gdb slower and use 
more memory.

 The flag may be still useful for people who want smaller binaries and don't 
use gdb for much more than backtraces, but it's apparently not a good default 
for the time being.

-- 
 Lubos Lunak
 l.lunak at suse.cz


More information about the LibreOffice mailing list