From 2b2bd5438c70ce79d1f2fa16dead809fdbf35158 Mon Sep 17 00:00:00 2001 From: George Huebner Date: Sat, 20 Jul 2024 05:44:24 -0500 Subject: [PATCH] gdb: support aarch64-darwin as a hostPlatform GDB can still be used for cross debugging. This is useful for e.g. arm-none-eabi-gdb. --- pkgs/development/tools/misc/gdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index da8167b3b16e..19f6890ac964 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -27,6 +27,7 @@ let in assert pythonSupport -> python3 != null; +assert lib.asserts.assertMsg (stdenv.targetPlatform.system != "aarch64-darwin") "GDB does not support aarch64-darwin as a target"; stdenv.mkDerivation rec { pname = targetPrefix + basename + lib.optionalString hostCpuOnly "-host-cpu-only"; @@ -154,8 +155,7 @@ stdenv.mkDerivation rec { license = lib.licenses.gpl3Plus; - # GDB upstream does not support ARM darwin - platforms = with lib.platforms; linux ++ cygwin ++ freebsd ++ ["x86_64-darwin"]; + platforms = with lib.platforms; linux ++ cygwin ++ freebsd ++ darwin; maintainers = with lib.maintainers; [ pierron globin lsix ]; }; }