1

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?

Scott Daniel
  • 1,087
  • 12
  • 18
  • http://stackoverflow.com/questions/21082234/mac-c-eclipse-cannot-debug-error-while-launching-command-gdb-version is of no help? – dbrank0 Jan 13 '15 at 08:56
  • 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 Jan 13 '15 at 20:06

1 Answers1

0

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.

BrunoMedeiros
  • 1,441
  • 12
  • 14