问题
I am trying to setup GDB on Mac OS X El Capitan. I have already set the path in Eclipse (Preference->C/C++->GDB-> /usr/local/bin/gdb). Trying to debug simple hello world program. but its stuck at 96% (refer image bottom right side). ]3
回答1:
I'm running sierra 10.12.4, and apple has completely destroyed the ability to run gdb as far as I can tell.
After poking around it seems that the lldb support in eclipse, though still labeled experimental (in neon 3), works well enough.
So 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 the lldb support, and then set the launcher type to the lldb setting in debug configs and it works. It's kinda slow, but it works.
来源:https://stackoverflow.com/questions/37760879/mac-c-mars-eclipse-gdb-debug-launching-stuck-at-96