[FFmpeg-devel] [PATCH] Source level debug
Tue Mar 4 06:38:04 CET 2008
On Mon, Mar 03, 2008 at 02:03:05PM +0100, Panagiotis Issaris wrote:
> Benjamin Larsson schreef:
> > Rich Felker wrote:
> >> [...]
> >>> I would, however, prefer the level being an
> >>> argument to --enable-debug rather than a whole new flag.
> >> I agree. I'd also like it if --disable-debug were the default, but I
> >> doubt others will be happy with that..
> >> Rich
> > I prefer that FFmpeg is compiled default with -g. It makes it easy for
> > people to submit bug reports without recompiling FFmpeg. And I also
> > support the use of an argument to --enable-debug instead of the proposed
> > patch. And all compilers might not have -g levels. So I'll try to submit
> > a patch adding argument handling.
> I've noticed that some projects (or was it distros) put the debugging
> symbols in a separate file, so there's no duplication of executable
> code. So, no ffmpeg_g en ffmpeg, but just one ffmpeg and a ffmpeg.dbg
> file containing only the debugging symbols. I've never used it myself
> like that, but I like the idea.
It doesn't solve any of the fundamental problems which are that:
- building with debug symbols takes 3-5x the disk space
- the increased disk io significantly impacts build time
- thrashing the disk is bad for life expectancy (even worse on flash
media and some other non-disk media)
IMO it's irresponsible to do these things by default when the user did
not request debugging.
More information about the ffmpeg-devel