I want to use Integrated Tool to develop C++, not to use Eclipse as only the editor and compile in other environment. my eclipse CDT tool as default is without GDB debugging environment, can any body give some hints on how to install gdb to Eclipse CDT?
6 Answers
For Windows - You can find "ready to use" gdb.exe here MinGW - Minimalist GNU for Windows at Sourceforge.net. Get gdb-7.0-2-mingw32-bin.tar.gz.
Just install into MinGW directory and set path to gdb.exe under Run->Debug Configurations->Debugger.
The latest on 05.2012 - MinGW - Minimalist GNU for Windows - gdb-7.4-2-mingw32-bin.tar.lzma

- 1,814
- 25
- 17
Eclipse is big on modularization...unlike other IDE's you are responsible for installing the needed "modules". For example, my installation came with the base and CDT (C++ Development Tools) but no debugger. Seems a bit absurd to have and IDE w/ out a default debugger but so it goes.
For my installation I had to install Eclipse and than install GDB ( A Debugger) and then tell Eclipse where the debugger is by setting the path variable to the debugger.
This link is a bit outdated but it is the best I could find. It uses the GDB (GNU Debugger) that comes with MinGW (Minimalist GNU for Windows).
Try to install Wascana that helps you installing MinGW and configure the path for you in c project if you're developing c/c++ code on Windows.

- 8,035
- 7
- 46
- 75
-
I am developing in ubuntu environment, can I use some method like "apt-get install gdb" ? – parsifal Dec 29 '10 at 04:53
-
Sure thing. You could use "apt-get install build-essential" to install basic GNU tool chain, such as gcc, make and gdb. – Kane Dec 29 '10 at 05:33
I ran into issues with gdb as supplied in the official MinGW distribution on Sourceforge. As far as I can tell, that gdb.exe is configured as mingw32 and it didn't work for 64bit applications. I'm also not sure how you go about building gdb yourself from the source files at the official website. Someone more experienced than I might be able to link in some information about this so that you can build your own gdb binaries for your needs. I did eventually find pre-built gdb binaries for 32-bit and 64bit development at the link below:

- 665
- 10
- 17
I ran into the same problem, and finally solved this problem by following these steps: Go to "Debug Configurations"; Choose “Environment”; Add "PATH", Value is "X:\cygwin\bin", which is the path of your cygwin folder.
Then you can try to Run your code now

- 333
- 3
- 6
- Upgrade to Eclipse Indigo (the latest eclipse version at the moment)
- Start Eclipse
- Go to Help|Eclipse Marketplace ...
- Switch to Yoxos Marketplace - see the orange ball near the end of the dialog
- In the Find: text box write CDT and click the Go button
- Scroll the list of found plugins until you see CDT Visual C++ Support
- Install it.
Now you can compile and run, but not debug. For that you have to install the GDB debugger - I am looking into it myself right now.

- 59,016
- 79
- 296
- 580