gdb-apple-768-darwin-arch.patch 571 B

12345678910111213141516
  1. * configure checks for /usr/bin/arch to determine whether "arch" is ok
  2. to use, so don't rely on the path at runtime, since GNU arch doesn't
  3. understand -arch at all (and only returns the current arch name)
  4. --- src/gdb/fork-child.c
  5. +++ src/gdb/fork-child.c
  6. @@ -243,7 +243,7 @@
  7. arch_string = "x86_64";
  8. #endif
  9. if (arch_string != NULL)
  10. - sprintf (shell_command, "%s exec arch -arch %s ", shell_command, arch_string);
  11. + sprintf (shell_command, "%s exec /usr/bin/arch -arch %s ", shell_command, arch_string);
  12. else
  13. strcat (shell_command, "exec ");
  14. }