mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
5c5b71df5e
This setup hook is propagated by gdb. Thus, a typical use is: $ nix-shell -p gdb nix nix.debug sqlite.debug ... and gdb will be able find the debug symbols of nix etc. automatically.
6 lines
111 B
Bash
6 lines
111 B
Bash
setupDebugInfoDirs () {
|
|
addToSearchPath NIX_DEBUG_INFO_DIRS $1/lib/debug
|
|
}
|
|
|
|
envHooks+=(setupDebugInfoDirs)
|