gdb: Fix safe path for cross
This commit is contained in:
parent
2c50bd3984
commit
7ee98d8bb3
|
@ -1,4 +1,4 @@
|
|||
{ stdenv
|
||||
{ stdenv, targetPackages
|
||||
|
||||
# Build time
|
||||
, fetchurl, pkgconfig, perl, texinfo, setupDebugInfoDirs, buildPackages
|
||||
|
@ -8,9 +8,12 @@
|
|||
|
||||
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
|
||||
, guile ? null
|
||||
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
|
||||
, safePaths ? [ "$debugdir" "$datadir/auto-load" stdenv.cc.cc.lib ]
|
||||
|
||||
, safePaths ? [
|
||||
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
|
||||
"$debugdir" "$datadir/auto-load"
|
||||
# targetPackages so we get the right libc when cross-compiling and using buildPackages.gdb
|
||||
targetPackages.stdenv.cc.cc.lib
|
||||
]
|
||||
}:
|
||||
|
||||
let
|
||||
|
|
Loading…
Reference in New Issue