Unverified Commit 584c58cf authored by Kenny MacDermid's avatar Kenny MacDermid
Browse files

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.
parent 69e6642e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
  '';
+1 −1
Original line number Diff line number Diff line
@@ -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
  '';