Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't launch gdb("gdb --version" fails)
Can't launch gdb [message #664213] Thu, 07 April 2011 16:39 Go to next message
Eclipse UserFriend
I'm evaluating the possibility of replacing Visual Studio with Eclipse and part of the evaluation is debugging. I just installed Eclipse for C/C++ Developers (Helios) and Wascana MingW. I created the Eclipse "Hello World" project and set a breakpoint at the output statement. The project built and ran error-free, but when I selected "Debug", I got an error the the effect that "gdb --version" returned an error. I cannot find any option to tell Eclipse where to find GDB. I'm running Win7-64, with 64-bit Java. Where do I go from here? ("Back to Visual Studio" is NOT a preferred answer. Smile )

[Updated on: Thu, 07 April 2011 16:42] by Moderator

Re: Can't launch gdb [message #664227 is a reply to message #664213] Thu, 07 April 2011 18:33 Go to previous messageGo to next message
Eclipse UserFriend
Go to Run->Debug Configurations...
This will show you the different debug launches that exist and give you the ability to create new ones. Choose the one for the project your trying to debug and go to the Debugger tab. You can specify the location of GDB in there.

The best way though would be to add the location of GDB to your PATH variable.

Marc
Re: Can't launch gdb [message #664249 is a reply to message #664227] Thu, 07 April 2011 23:12 Go to previous messageGo to next message
Eclipse UserFriend
Thanks. I was lulled into a false sense of security by the Msys "which" command, which found the debugger. But your suggestion made me remember that Msys has path components that are not in Windows itself. Your suggestion fixed things nicely.
Re: Can't launch gdb [message #1750894 is a reply to message #664213] Sat, 31 December 2016 06:56 Go to previous messageGo to next message
Eclipse UserFriend
HI,
while im trying to debugging my project , i bump into the same problem , as described up , i tried to follow after your instructions ,but unfortunately
without success,
do you have an another idea thet might help also?

thanks alot.
Re: Can't launch gdb [message #1751142 is a reply to message #1750894] Wed, 04 January 2017 17:06 Go to previous message
Eclipse UserFriend
HI chen tal,

Please start a new thread and describe the problem you have, specifically what error you get.

Jonah
Previous Topic:Arduino ESP8266 WIFI Classes not found-resolved with workaround
Next Topic:How do I adapt this info to my system so I can get this setup?
Goto Forum:
  


Current Time: Wed Jul 02 11:58:19 EDT 2025

Powered by FUDForum. Page generated in 0.04007 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top