[Nix-dev] Debugging Symbols
Adrien Devresse
Adev at adev.name
Mon Feb 15 16:13:44 CET 2016
+1 to this proposal.
The current solution to recompile with a nix function is far to be a
perfect solution:
- It happens often that recompiling with debug flags change the behavior
of the progrm itself and make the crash/problem impossible to reproduce
with debinfos.
- It is a pain when a crash happen in a low level library ( e.g libc )
and that half of the stack has to be recompiled just to get some debug
informations.
Having an additional output with the deb symbols per derivation would be
similar to the others packaging system (RPM, Deb) approach ( *-dbg.deb,
*-debuginfo.rpm ).
Adev
Le 15/02/16 16:00, Kevin Cox a écrit :
> On Mon, 2016-02-15 at 15:50 +0100, Luca Bruno wrote:
>> +1, with the multi outputs branch [1] it makes a lot of sense to ship
>> an additional output for debug symbols, instead of rebuilding the
>> program using Nix functions [2]
>>
>> [1] https://github.com/NixOS/nixpkgs/pull/7701
>> [2] https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/misc.nix#L113
>
> Definitely! Having the debug function would still be useful because
> debugging optimized programs is often difficult but the symbols
> version can go away because all programs would have symbols already.
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/be449b5a/attachment.html
More information about the nix-dev
mailing list