I run sierra 10.12.4, and the apple completely destroyed the ability to run gdb, as far as I can tell.
After shaking around, it seems that lldb support in the eclipse, although still labeled experimental (in neon 3), works quite well.
Do this:
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_get_the_LLDB_debugger.3F
and then you can debug. Basically, you install lldb support and then set the startup type to lldb setup in debug configurations, and it works. This is a bit slow, but it works.
stu
source share