I\'m just trying to debug code with gdb on Mac OSX Version 10.12 but always getting this unknown error when launching my program in gdb.
I codesigned the gdb after i
This worked for me, if you are still looking for a solution:
Restart youre machine in the recovery mode, open a terminal and enter the following
$ csrutil enable --without debug
Reboot the machine and gdb should work as usual (full thread in here: http://sourceware-org.1504.n7.nabble.com/gdb-on-macOS-10-12-quot-Sierra-quot-td415708.html#a415940)