lol

gdb: 8.3.1 -> 9.1

See https://www.gnu.org/software/gdb/download/ANNOUNCEMENT for release
information

authored by

Lancelot SIX and committed by
Frederik Rietdijk
4e085866 bb0d0360

+33 -16
+1 -1
pkgs/development/tools/misc/gdb/darwin-target-match.patch
··· 1 1 --- a/configure 2017-06-05 00:51:26.000000000 +0900 2 2 +++ b/configure 2018-03-06 23:12:58.000000000 +0900 3 - @@ -3603,7 +3603,7 @@ 3 + @@ -3644,7 +3644,7 @@ 4 4 noconfigdirs="$noconfigdirs ld gprof" 5 5 noconfigdirs="$noconfigdirs sim target-rda" 6 6 ;;
+21 -12
pkgs/development/tools/misc/gdb/debug-info-from-env.patch
··· 1 - Initialize debug-file-directory from NIX_DEBUG_INFO_DIRS, a colon-separated list 2 - of directories with separate debugging information files. 3 - 4 - --- a/gdb/main.c 5 - +++ b/gdb/main.c 6 - @@ -556,3 +556,8 @@ captured_main_1 (struct captured_main_args *context) 1 + diff -ur a/gdb/main.c b/gdb/main.c 2 + --- a/gdb/main.c 2020-02-08 13:50:14.000000000 +0100 3 + +++ b/gdb/main.c 2020-02-24 10:02:07.731806739 +0100 4 + @@ -567,9 +567,17 @@ 5 + gdb_sysroot = xstrdup (TARGET_SYSROOT_PREFIX); 6 + } 7 7 8 - - debug_file_directory = relocate_gdb_directory (DEBUGDIR, 9 - + debug_file_directory = getenv("NIX_DEBUG_INFO_DIRS"); 10 - + 8 + - debug_file_directory 9 + - = xstrdup (relocate_gdb_directory (DEBUGDIR, 10 + - DEBUGDIR_RELOCATABLE).c_str ()); 11 + + debug_file_directory = getenv ("NIX_DEBUG_INFO_DIRS"); 11 12 + if (debug_file_directory != NULL) 12 - + debug_file_directory = xstrdup(debug_file_directory); 13 + + // This might be updated later using 14 + + // $ set debug-file-directory /to/some/path 15 + + // which will use xfree. We must then have a xmallocated 16 + + // copy of the string that can be xfeed later. 17 + + debug_file_directory = xstrdup (debug_file_directory); 13 18 + else 14 - + debug_file_directory = relocate_gdb_directory (DEBUGDIR, 15 - DEBUGDIR_RELOCATABLE); 19 + + debug_file_directory 20 + + = xstrdup (relocate_gdb_directory (DEBUGDIR, 21 + + DEBUGDIR_RELOCATABLE).c_str ()); 22 + 23 + gdb_datadir = relocate_gdb_directory (GDB_DATADIR, 24 + GDB_DATADIR_RELOCATABLE);
+10 -3
pkgs/development/tools/misc/gdb/default.nix
··· 18 18 19 19 let 20 20 basename = "gdb-${version}"; 21 - version = "8.3.1"; 21 + version = "9.1"; 22 22 in 23 23 24 24 assert pythonSupport -> python3 != null; ··· 31 31 32 32 src = fetchurl { 33 33 url = "mirror://gnu/gdb/${basename}.tar.xz"; 34 - sha256 = "1i2pjwaafrlz7wqm40b4znr77ai32rjsxkpl2az38yyarpbv8m8y"; 34 + sha256 = "0dqp1p7w836iwijg1zb4a784n0j4pyjiw5v6h8fg5lpx6b40x7k9"; 35 35 }; 36 36 37 37 postPatch = if stdenv.isDarwin then '' ··· 65 65 # TODO(@Ericson2314): Always pass "--target" and always prefix. 66 66 configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (stdenv.targetPlatform != stdenv.hostPlatform) "target"; 67 67 68 + # GDB have to be built out of tree. 69 + preConfigure = '' 70 + mkdir _build 71 + cd _build 72 + ''; 73 + configureScript = "../configure"; 74 + 68 75 configureFlags = with stdenv.lib; [ 69 76 "--enable-targets=all" "--enable-64-bit-bfd" 70 77 "--disable-install-libbfd" ··· 100 107 license = stdenv.lib.licenses.gpl3Plus; 101 108 102 109 platforms = with platforms; linux ++ cygwin ++ darwin; 103 - maintainers = with maintainers; [ pierron globin ]; 110 + maintainers = with maintainers; [ pierron globin lsix ]; 104 111 }; 105 112 }
+1
pkgs/top-level/all-packages.nix
··· 10791 10791 10792 10792 gdb = callPackage ../development/tools/misc/gdb { 10793 10793 guile = null; 10794 + readline = readline80; 10794 10795 }; 10795 10796 10796 10797 jhiccup = callPackage ../development/tools/java/jhiccup { };