From 80b51d983ae77f47910ba26305023efbfdb62e91 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 9 Jun 2019 23:56:08 -0400 Subject: [PATCH] gdb: patch to use mach-o.h instead of bfd/mach-o.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For unclear reasons, this doesn’t seem to work anymore. bfd/mach-o.h is not accessible but mach-o.h is. https://hydra.nixos.org/build/94542582 --- pkgs/development/tools/misc/gdb/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index 97657075d46..05e0b1cd96f 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -29,6 +29,11 @@ stdenv.mkDerivation rec { sha256 = "0bnpzz0rl672xg5547q5qck2sxi6cnyixmk8bbb4gifw17ipwbw0"; }; + postPatch = if stdenv.isDarwin then '' + substituteInPlace gdb/darwin-nat.c \ + --replace '#include "bfd/mach-o.h"' '#include "mach-o.h"' + '' else null; + patches = [ ./debug-info-from-env.patch ] ++ stdenv.lib.optionals stdenv.isDarwin [