I\'m under osx 10.8.4 and have installed gdb 7.5.1 with homebrew (motivation get a new gdb with new features such as --with-python etc... )
Long story short when I
I can recommend to follow this gist: https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d#file-codesign_gdb-md
With trick to overcome: unknown error = -2,147,414,007
during Certificate Creation described here:
https://apple.stackexchange.com/a/309123
Notes:
Path for gdb installed as homebrew
package should be something like: /usr/local/Cellar/gdb/9.2/bin/gdb
And csrutil enable --without debug
will cause a message about requesting unsupported configuration
, like here:
https://totalfinder.binaryage.com/system-integrity-protection
Test:
○ → sw_vers -productVersion
10.13.6
○ → gdb ./a.out
GNU gdb (GDB) 9.2
...
Thread 3 hit Breakpoint 1, main () at main.c:14
14 data_t d = {0};