[Nix-dev] Debugging Symbols

Kevin Cox kevincox at kevincox.ca
Mon Feb 15 19:47:11 CET 2016


On Mon, 2016-02-15 at 17:50 +0100, Eelco Dolstra wrote:
> This is already supported. Just add
>   separateDebugInfo = true;
> 
> to a package to get an output named "debug", with debug symbols in
> lib/debug/.build-id. This also enables the -ggdb flag.
> 
> You can then enable GDB to find these symbols by adding
> 
>   environment.enableDebugInfo = true;
> 
> to configuration.nix.
> 
> Note however that very few packages in Nixpkgs currently set separateDebugInfo
> because Hydra disk space is problematic as it is.
> 
> 

That sounds fantastic. I'll try it out. I didn't realize that the
enableDebugInfo flag was required.
On a somewhat related note, I was wondering why the environment links
specific directories, rather then automatically linking everything?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/9dd27188/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/9dd27188/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5658 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/9dd27188/attachment-0001.bin 


More information about the nix-dev mailing list