From 584c58cf279517b0edfcbcae01d7ba7813b41834 Mon Sep 17 00:00:00 2001 From: Kenny MacDermid Date: Tue, 2 May 2023 16:51:32 -0300 Subject: [PATCH] gcc-arm-embedded: pass args to gdb The wrapper around `arm-none-eabi-gdb` was not passing through the command line arguments. This would cause build systems that attempted to determine the gdb version to hang. Match the other wrapper by adding `"$@"`, and using `exec` to call the unwrapped process. --- pkgs/development/compilers/gcc-arm-embedded/11/default.nix | 2 +- pkgs/development/compilers/gcc-arm-embedded/12/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/gcc-arm-embedded/11/default.nix b/pkgs/development/compilers/gcc-arm-embedded/11/default.nix index 1fb9f611a066..ad132f5bbf6c 100644 --- a/pkgs/development/compilers/gcc-arm-embedded/11/default.nix +++ b/pkgs/development/compilers/gcc-arm-embedded/11/default.nix @@ -50,7 +50,7 @@ stdenv.mkDerivation rec { #!${runtimeShell} export PYTHONPATH=${python38}/lib/python3.8 export PYTHONHOME=${python38}/bin/python3.8 - $out/bin/arm-none-eabi-gdb-unwrapped + exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" EOF chmod +x $out/bin/arm-none-eabi-gdb ''; diff --git a/pkgs/development/compilers/gcc-arm-embedded/12/default.nix b/pkgs/development/compilers/gcc-arm-embedded/12/default.nix index 9e1f49219e0e..5fd186802c53 100644 --- a/pkgs/development/compilers/gcc-arm-embedded/12/default.nix +++ b/pkgs/development/compilers/gcc-arm-embedded/12/default.nix @@ -52,7 +52,7 @@ stdenv.mkDerivation rec { #!${runtimeShell} export PYTHONPATH=${python38}/lib/python3.8 export PYTHONHOME=${python38}/bin/python3.8 - $out/bin/arm-none-eabi-gdb-unwrapped + exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" EOF chmod +x $out/bin/arm-none-eabi-gdb '';