【发布时间】:2013-10-23 23:51:56
【问题描述】:
我在 OS X v10.9 (Mavericks) 中使用了 GDB,但它不存在。去哪儿了?
# /usr/lib/gdb
-bash: /usr/bin/gdb: No such file or directory
# gdb
-bash: gdb: command not found
我还推出了 Xcode 5.0.1:
首选项 > 下载
..并且不再有可用的命令行工具 - ffs!
【问题讨论】:
-
命令行工具可用,developer.apple.com/downloads/… 要到达那里,从 XCode 转到 XCode > Open Developer Tool > More Developer Tools...
-
编辑:没关系,因为命令行工具中也没有 GDB...
-
自从我问了这个问题后,很多人都问我用什么 ./configure 选项来实现这个功能:
./configure --prefix=/usr/local --enable-targets=x86_64-apple-darwin13.0.0 --enable-64-bit-bfd --disable-werror --build=x86_64-apple-darwin13.0.0 --host=x86_64-apple-darwin13.0.0 --target=x86_64-apple-darwin13.0.0