Installing GDB on OS X Mavericks
http://ntraft.com/installing-gdb-on-os-x-mavericks/
以下是我安装时遇到的问题:
可以只安装gdb,使用xcode自带的gcc
sudo port install gdb-apple
执行上面的安装指令可能会有如下提示:
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
Warning: Install them by running `xcode-select --install'.
---> Computing dependencies for gdb-apple
---> Cleaning gdb-apple
---> Scanning binaries for linking errors
---> No broken files found.
如果/opt/local/bin下已经安装好了gdb相关的内容,上面的提示可以忽略。
设置eclipse的时候要注意,新创建的gdb的符号链接要先在终端下测试是否可以执行成功。