Debug Symbols: Difference between revisions

imported>Symphorien
mention nixseparatedebuginfod
nixseparatedebuginfo: Update to nixseparatedebuginfod2
 
(3 intermediate revisions by 3 users not shown)
Line 132: Line 132:


==== nixseparatedebuginfo ====
==== nixseparatedebuginfo ====
[https://github.com/symphorien/nixseparatedebuginfod nixseparatedebuginfod] is a debuginfod server that can download the relevant debug outputs and source files as needed by debuginfod-capable tools. Compared to dwarffs, it does not require root access, and handles debug outputs of derivations not built by hydra (eg locally or on a custom binary cache) and source files. As of NixOS 22.11, only hotspot is built with debuginfod support by default, and notably not gdb so instead of installing <code>gdb</code> in <code>/etc/nixos/configuration.nix</code>, you should install <code>(gdb.override { enableDebuginfod = true })</code>.
[https://github.com/symphorien/nixseparatedebuginfod2 nixseparatedebuginfod2] is a debuginfod server that can download the relevant debug outputs and source files as needed by debuginfod-capable tools. Compared to dwarffs, it does not require root access, and handles debug outputs of derivations not built by hydra (eg locally or on a custom binary cache) and source files. Gdb is built with support for debuginfod, and valgrind has support if you additionally install the bin output of elfutils.
 
[[Category:Nixpkgs]]