diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-17 15:45:10 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-09-17 15:56:37 +0200 |
commit | e636e0a5329f546ebcc603d56bb99a0d016370f8 (patch) | |
tree | 51b4185565f56b993a5ee71a4454871415170ed0 /pkgs/development/tools/misc/gdb | |
parent | ec5b66eb4add9d494d8fb16f6899028750d317a2 (diff) | |
download | nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.gz nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.bz2 nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.lz nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.xz nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.tar.zst nixlib-e636e0a5329f546ebcc603d56bb99a0d016370f8.zip |
gdb: Look for debug info in /run/current-system/sw/lib/debug
The previous default was $out/lib/debug, which wasn't very useful. This ensures that you can do environment.systemPackages = [ pkgs.hello.debug ]; to install debug info.
Diffstat (limited to 'pkgs/development/tools/misc/gdb')
-rw-r--r-- | pkgs/development/tools/misc/gdb/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index d50822d49491..ee7f0595a1fd 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -44,6 +44,7 @@ stdenv.mkDerivation rec { configureFlags = with stdenv.lib; '' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline --with-expat --with-libexpat-prefix=${expat} + --with-separate-debug-dir=/run/current-system/sw/lib/debug '' + optionalString (target != null) " --target=${target.config}" + optionalString (elem stdenv.system platforms.cygwin) " --without-python"; |