Comment faire pour installer gdb sur OSX 10.9

Comment installer gdb sur OSX 10.9?

J'essaie d'utiliser macports:

port install gdb
Password:
...
--->  Updating database of binaries: 100.0%
--->  Scanning binaries for linking errors: 100.0%
--->  No broken files found.

Mais je n'ai pas de gdb exécutable:

$ which gdb
$ 

Je découvert que macports gdb sur mac est appelé ggdb. Je fais donc un lien:

sudo ln -s /opt/local/bin/ggdb /opt/local/bin/gdb

$ gdb --args ./prog -time
GNU gdb (GDB) 7.6
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.0.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /prog...done.
(gdb) r
Starting program: /prog -time
Unable to find Mach task port for process-id 65740: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
(gdb) 

Donc comment faire pour installer gdb correctement sur OSX 10.9?

P. S. questions Connexes, ce qui n'aide pas:

Comment obtenir un "codesigned" gdb sur OSX?

"s'il vous plaît vérifier gdb est codesigned - voir taskgated(8)" - Comment obtenir gdb installé avec homebrew code signé?

OriginalL'auteur klm123 | 2013-11-16