我无法使用Homebrew(2.0.0)在Mac OSX Mojave(10.14)上启用所有目标的情况下安装gdb。
我已经试过:
brew install gdb --enable-targets=all
和
brew install gdb --with-all-targets
和接收Error: invalid option: --enable-targets=all和Error: invalid option: --with-all-targets
brew info gdb 返回:
gdb: stable 8.2.1 (bottled), HEAD
GNU debugger
https://www.gnu.org/software/gdb/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gdb.rb
==> Dependencies
Build: pkg-config ?
==> Options
--HEAD
Install HEAD version
==> Caveats
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
https://sourceware.org/gdb/wiki/BuildingOnDarwin
On 10.12 (Sierra) or later with SIP, you need …Run Code Online (Sandbox Code Playgroud)