about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/gdb
diff options
context:
space:
mode:
authorlsix <lsix@lancelotsix.com>2023-08-07 09:58:05 +0100
committerGitHub <noreply@github.com>2023-08-07 09:58:05 +0100
commit2a74588aaf294bb6a055533e0d2fa894e133fb39 (patch)
tree19c52676ab186ba9367bb09c925cefe35dd6aa39 /pkgs/development/tools/misc/gdb
parent92e83bfab5d0dac17ed868fd1ba2118193597f42 (diff)
parent9513725990ae41829f1461d86598d3c67d74caea (diff)
Merge pull request #245513 from lsix/gdb-disable-sim
gdb: disable sim by default
Diffstat (limited to 'pkgs/development/tools/misc/gdb')
-rw-r--r--pkgs/development/tools/misc/gdb/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix
index a88bd9f0b3bbc..93d61b638bea3 100644
--- a/pkgs/development/tools/misc/gdb/default.nix
+++ b/pkgs/development/tools/misc/gdb/default.nix
@@ -10,6 +10,7 @@
 , enableDebuginfod ? lib.meta.availableOn stdenv.hostPlatform elfutils, elfutils
 , guile ? null
 , hostCpuOnly ? false
+, enableSim ? false
 , safePaths ? [
    # $debugdir:$datadir/auto-load are whitelisted by default by GDB
    "$debugdir" "$datadir/auto-load"
@@ -113,7 +114,8 @@ stdenv.mkDerivation rec {
   ] ++ lib.optional (!pythonSupport) "--without-python"
     ++ lib.optional stdenv.hostPlatform.isMusl "--disable-nls"
     ++ lib.optional stdenv.hostPlatform.isStatic "--disable-inprocess-agent"
-    ++ lib.optional enableDebuginfod "--with-debuginfod=yes";
+    ++ lib.optional enableDebuginfod "--with-debuginfod=yes"
+    ++ lib.optional (!enableSim) "--disable-sim";
 
   postInstall =
     '' # Remove Info files already provided by Binutils and other packages.