gdb: Look for .build-id files in NIX_DEBUG_INFO_DIRS

This allows us to provide a setup hook that makes debug outputs
findable by gdb.
This commit is contained in:
Eelco Dolstra
2017-07-28 16:38:22 +02:00
parent 07ab4d257e
commit 5b09152898
2 changed files with 83 additions and 0 deletions
@@ -32,6 +32,8 @@ stdenv.mkDerivation rec {
sha256 = "1vplyf8v70yn0rdqjx6awl9nmfbwaj5ynwwjxwa71rhp97z4z8pn";
};
patches = [ ./debug-info-from-env.patch ];
nativeBuildInputs = [ pkgconfig texinfo perl ]
# TODO(@Ericson2314) not sure if should be host or target
++ stdenv.lib.optional targetPlatform.isHurd mig;