Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Error while launching command: gdb --version
Error while launching command: gdb --version [message #1155311] Fri, 25 October 2013 21:02 Go to next message
Jamie Lahowetz is currently offline Jamie LahowetzFriend
Messages: 3
Registered: August 2013
Junior Member
When I try to debug i get this error:
Error while launching command: gdb --version

If I change the path to the debugger it will run but it skips lines and "step over" doesnt seem to work all the time.

If I type the same into the console I get this:
jlahowetz2@snr-1770 /usr/bin $ gdb --version
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:

I'm using Eclipse Kepler
Re: Error while launching command: gdb --version [message #1202600 is a reply to message #1155311] Fri, 22 November 2013 08:13 Go to previous messageGo to next message
Ben Alex is currently offline Ben AlexFriend
Messages: 2
Registered: November 2013
Junior Member
Hi,

I'm also getting the following error while launching the debugger.

Error while launching command: gdb --version


Please help if anybody knows the solution.


-ben
Re: Error while launching command: gdb --version [message #1207011 is a reply to message #1155311] Sun, 24 November 2013 10:36 Go to previous messageGo to next message
Matteo Olivi is currently offline Matteo OliviFriend
Messages: 1
Registered: November 2013
Junior Member
I am experiencing the very same problem, please someone help us.

The only difference is that I am using Eclipse on a Mac OS X 10.9

I can run programs normally, but whenever I try to debug them I get this message: error while launching command: gdb --version.

If I try to run that command from terminal it states that the command could not be found, but i can see all the gdb settings on Eclipse so It should be installed.
Re: Error while launching command: gdb --version [message #1209023 is a reply to message #1207011] Mon, 25 November 2013 09:49 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
Note that Eclipse uses GDB to debug but not does not install it itself. You have to make sure GDB is installed on your computer before Eclipse can use it.

If the command
gdb -version
does not work from your command line, it means wither gdb is not installed at all, or it is not part of the your PATH. You have to make it work from the command-line first if you hope to use Eclipse to debug.

Marc
Re: Error while launching command: gdb --version [message #1212057 is a reply to message #1207011] Tue, 26 November 2013 18:54 Go to previous messageGo to next message
Sean Quallen is currently offline Sean QuallenFriend
Messages: 4
Registered: November 2013
Junior Member
gdb doesn't come with Mavericks. Installing the "command line" tools won't help either. I installed it with Homebrew, although I've heard macports works as well.
Re: Error while launching command: gdb --version [message #1219077 is a reply to message #1209023] Sun, 01 December 2013 05:27 Go to previous message
Ben Alex is currently offline Ben AlexFriend
Messages: 2
Registered: November 2013
Junior Member
I have already installed gdb from cygwin and if I use the command in cygwin terminal

$ gdb --version
GNU gdb (GDB) 7.6.50.20130728-cvs (cygwin-special)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later

So I don't think its an issue with installation. may be the path ???
Previous Topic:c99 problem
Next Topic:Syntax checking error.
Goto Forum:
  


Current Time: Wed Nov 13 05:52:03 GMT 2024

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

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

Back to the top