I'm having trouble getting debugging working on Eclipse. I'm currently running the latest version of Eclipse Oxygen, on MacOS Sierra (10.12.6). I have gdb 8.0 installed, and it seems to work in the terminal. However, when I try to debug the "Hello World" sample program , I get the attached error. Is there a workaround for this?
Are you able to do command line debug of your program? If so, then it sounds like a potential bug in CDT to file. If not, it sounds like a bug in GDB to file.
Can you try with GDB 7.12? 7.12 has been out a bit longer and I know from others it works (in general). GDB 8.0 was released at about the same time as Oxygen, so perhaps there is a mismatch between CDT and GDB.
Any diagnosis you can do will help greatly resolve the problem.
Weirdly enough, trying to debug the Hello World program again worked. It seems to have resolved itself somehow. I'm not really sure what changed, as I essentially just quit Eclipse, put my computer to sleep, and then tried it again when I opened Eclipse today after seeing your message. I'm still on GDB 8.0, with Eclipse Oxygen, and I didn't notice any updates coming in from Eclipse.
Glad to hear it works now. If you can do again end up with a reproducible failure, please let us know.
I didn't notice any updates coming in from Eclipse.
Sorry, wasn't clear. GDB 8.0 was released in June, at the same time as Eclipse Oxygen, also released in June. There are no updates (in this area*) for GDB support. My point was simply that during the active development cycle, most of the testing for Oxygen was using GDB 7.12.
* CDT 9.3.1 was released in July, you can update to it for some improvements to UI responsiveness when doing builds. Eclipse Oxygen include CDT 9.3.0.