1
votes

I've install gdb on my mac and successfully gotten it to run from the command line and from LiteIDE. However, when I run it under Eclipse (Goclipse and C++ programs), I get the error:

Error with command: gdb --version Cannot run program "gdb": Unknown reason

I have the latest version of gdb installed and I believe the path is correct.

I've tried modifying the gdb configuration in the C settings, but it had no effect.

Is there a problem finding the gdb executable or is it actually having trouble finding the executable?

1
I saw that post and tried it without success yesterday. Today, it makes gdb run. Perhaps it was the update I did in between. The bad news is that the debugger is very buggy. I'll probably switch to LiteIDE. Early indications are the debugger works better there. - Scott Daniel

1 Answers

0
votes

From the Goclipse User Guide:

The GDB that is included with OS X doesn't work properly. You'll need to install the latest GDB from Homebrew. See this article for details. Or alternatively, this Stack Oveflow link, which might be more up-to-date.