nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #112455 from baloo/baloo/gdb/debuginfod

gdb: add support for debuginfod

authored by

Ryan Burns and committed by
GitHub
f609e829 15e799aa

+5 -2
+5 -2
pkgs/development/tools/misc/gdb/default.nix
··· 7 7 , ncurses, readline, gmp, mpfr, expat, libipt, zlib, dejagnu, sourceHighlight 8 8 9 9 , pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null 10 + , enableDebuginfod ? false, elfutils 10 11 , guile ? null 11 12 , safePaths ? [ 12 13 # $debugdir:$datadir/auto-load are whitelisted by default by GDB ··· 49 48 50 49 buildInputs = [ ncurses readline gmp mpfr expat libipt zlib guile sourceHighlight ] 51 50 ++ lib.optional pythonSupport python3 52 - ++ lib.optional doCheck dejagnu; 51 + ++ lib.optional doCheck dejagnu 52 + ++ lib.optional enableDebuginfod (elfutils.override { enableDebuginfod = true; }); 53 53 54 54 propagatedNativeBuildInputs = [ setupDebugInfoDirs ]; 55 55 ··· 91 89 "--with-expat" "--with-libexpat-prefix=${expat.dev}" 92 90 "--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}" 93 91 ] ++ lib.optional (!pythonSupport) "--without-python" 94 - ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls"; 92 + ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls" 93 + ++ lib.optional enableDebuginfod "--with-debuginfod=yes"; 95 94 96 95 postInstall = 97 96 '' # Remove Info files already provided by Binutils and other packages.