[vlc-devel] [PATCH] Build contribs with debugging symbols

Sergey Radionov rsatom at gmail.com
Thu Aug 30 04:38:59 CEST 2012


2012/8/29 Rémi Denis-Courmont <remi at remlab.net>:
>    Hello,
>
> On Wednesday 29 August 2012, Sergey Radionov wrote:
>> How about -O0 option for vlc debug builds? It will be very usefull, at
>> least for me.
>
> I am opposed to disabling optimizations in contribs for several reasons:
> - Managing multiple contrib variants per target is impractical.
> - Some contrib packages has custom optimizations flags.
> - Optimized contribs should be tested as much as possible.
>
> The last argument also applies to VLC builds. It's best to keep the side
> effects of debug to a minimum, mainly run-time assertions. That way developers
> test code that is closer to what the users get.
Core vlc developers, I think, have there own builds of VLC, so they
don't use public debug builds.
But for others (like me), debug builds with optimization is useless
since they don't allow find bugs, since don't show many variable
values. Then, what for debug builds can be used? I can't imagine any
case.

>
> Thus, optimizations should be disabled only when debugging a *specific* problem
> where they interfere with the debugger. This is quite rare in my experience.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.info
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list