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.
This commit is contained in:
Kenny MacDermid 2023-05-02 16:51:32 -03:00
parent 69e6642e49
commit 584c58cf27
No known key found for this signature in database
GPG key ID: 88B5D54B9ACB2F23
2 changed files with 2 additions and 2 deletions

View file

@ -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
'';

View file

@ -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
'';