Mavericks に port で gdb をインストール
手順
(1) port で gdb をインストール
# port install gdb
(2) port のログをみると以下のメッセージがあるはず
You will need to make sure /System/Library/LaunchDaemons/com.apple.taskgated.plist has the '-p' option, e.g. <key>ProgramArguments</key> <array> <string>/usr/libexec/taskgated</string> <string>-sp</string> </array>
(3) 上述のメッセージにしたがって,com.apple.taskgated.plist を編集
$ sudo emacs /System/Library/LaunchDaemons/com.apple.taskgated.plist #など
# 私の環境では string タブが -s となっていたので p を付与
(4) PC を再起動する
(5) インストールできたか確認する
$ which ggdb
(6) 試しに動かしてみる
$ ggdb ./a.out