[Nix-dev] Debugging Symbols

Luca Bruno lethalman88 at gmail.com
Mon Feb 15 15:50:05 CET 2016


On 15/02/2016 15:43, Kevin Cox wrote:
> Hello all, I'm creating a bit of noise this morning.
>
> I noticed that almost all Nix packages are stripped of debugging
> symbols and was hoping to discuss a possible solution that would both
> keep the closure size minimal and allow post-hoc debugging of crashes.
> The small closure size speaks for itself and since systemd helpfully
> stores coredumps of all crashes it would be nice to be able to look
> into them without having to recompile and observe the crash again.
>
> TL;DR debugging symbols for all binaries, can be downloaded after the
> fact, works automatically in gdb.
+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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/98b22acc/attachment.html 


More information about the nix-dev mailing list