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
Solution for Mac OS X 10.12.5 and newer
Create a .gdbinit file in your home-direcetory and write "set startup-with-shell off" in it.
File can be created using vi ~/.gdbinit.
vi ~/.gdbinit
Open a new terminal and gdb will work.