Merge pull request #36378 from thefloweringash/fix-gdb-darwin
gdb: Flexible target matching for darwin
commitcbed7cdaf0d922ed0ef0a0881ee7caac29698e83
authorDaiderd Jordan <daiderd@gmail.com>
dateWed 7 Mar 2018, 18:47 (9 years ago)
parent6dab9074c76a21
pkgs/development/tools/misc/gdb/darwin-target-match.patchnew file+11
@@ -0,0 +1,11 @@
1+--- a/configure 2017-06-05 00:51:26.000000000 +0900
2++++ b/configure 2018-03-06 23:12:58.000000000 +0900
3+@@ -3603,7 +3603,7 @@
4+ noconfigdirs="$noconfigdirs ld gprof"
5+ noconfigdirs="$noconfigdirs sim target-rda"
6+ ;;
7+- x86_64-*-darwin[912]*)
8++ x86_64-*-darwin*)
9+ noconfigdirs="$noconfigdirs ld gas gprof"
10+ noconfigdirs="$noconfigdirs sim target-rda"
11+ ;;
pkgs/development/tools/misc/gdb/default.nix+2−1
@@ -35,7 +35,8 @@ stdenv.mkDerivation rec {
3535 sha256 = "0d2bpqk58fqlx21rbnk8mbcjlggzc9kb5sjirrfrrrjq70ka0qdg";
3636 };
3737
38− patches = [ ./debug-info-from-env.patch ];
38+ patches = [ ./debug-info-from-env.patch ]
39+ ++ stdenv.lib.optional stdenv.isDarwin ./darwin-target-match.patch;
3940
4041 nativeBuildInputs = [ pkgconfig texinfo perl setupDebugInfoDirs ]
4142 # TODO(@Ericson2314) not sure if should be host or target