ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/install/master/install)"
brew install gdb
http://jingyan.baidu.com/article/15622f241db565fdfcbea515.html
codesign -s sunyj_gdb /usr/local/bin/gdb --force
原文:http://www.cnblogs.com/sunyongjie1984/p/5213035.html