[Nix-dev] Debugging Symbols

Kevin Cox kevincox at kevincox.ca
Mon Feb 15 16:18:20 CET 2016


On Feb 15, 2016 10:13 AM, "Adrien Devresse" <Adev at adev.name> wrote:
>
> +1 to this proposal.

Thanks

>
> - 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.
>

I would like to point out that this is only about compiling with debug
symbols, not about changing the optimization level. GCC and clang support
this although apparently some compilers don't. The executable code should
be identical.

> - 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.
>

This is a great point. There should probably be an easy way to get all of
the required symbols because downloading one by one will be a pain. This
should be fairly easy to do with a python gdb extension.

> 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 ).
>

Definitely inspired.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160215/72eb480f/attachment-0001.html 


More information about the nix-dev mailing list