Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Installing GDB (working from CDT "Before you begin")
Installing GDB (working from CDT "Before you begin") [message #541982] Wed, 23 June 2010 12:58 Go to next message
michelle  is currently offline michelle Friend
Messages: 87
Registered: April 2010
Location: South Africa
Member
Hi there,

I've been stepping through the CDT welcome page. I have installed "C:\MingGW" and added the "C:\MingGW\bin" to my path. Now, in the next part of the "Before you start..." section it reads:

Quote:
The MinGW setup program currently does not install the gdb debugger.
To install the debugger, download the file from the following location: gdb-6.6.tar.bz2
Extract the contents of the file gdb-6.6.tar.bz2 to the same location where you installed MinGW.


I accidently downloaded gdb-7.1.tar.bz2

Q1. is the Eclipse help file just a bit outdated by specifying 6.6 specifically and 7.1 will be fine to use?

Q2. I've extracted everything into: C:\MingGW\gdb-7.1\ ...is this really all I have to do? Just this little folder sitting in MingGW? Nothing to add to PATH? Nothing to build or compile?? I can't even find a .exe file or \bin folder in here! How will eclipse even know that I've got this folder here? ..am I doing something wrong or is my understanding just completely off?

Q3. This tutorial here recommends I simply download and run "gdb-5.2.1-1.exe" ... I tried it and it put a nice C:\MinGW\bin\gdb.exe file in. I understand that. But I don't want the old 5.2 version. Perhaps I could skip all my questions in Q2. if anyone knows where the equivallent exe is for 7.1? I can't seem to find it anywhere.

Thank-you in advance for any help that gets posted.

Thanks, Michelle (newbie)

[Updated on: Wed, 23 June 2010 12:59]

Report message to a moderator

Re: Installing GDB (working from CDT "Before you begin") [message #542153 is a reply to message #541982] Thu, 24 June 2010 06:13 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Which Eclipse version did you install? gdb 6.6 is outdated. I would recommend at least version 6.8. But 7.1 is of course much better. In general, gdb.exe should be in C:\MinGW\bin

But I would recommend using Wascana project at Eclipse Labs, http://www.eclipselabs.org/p/wascana. Wascana is the latest CDT release and includes the MinGW toolchain (compiler and debugger).





Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Installing GDB (working from CDT "Before you begin") [message #542174 is a reply to message #542153] Thu, 24 June 2010 06:58 Go to previous messageGo to next message
michelle  is currently offline michelle Friend
Messages: 87
Registered: April 2010
Location: South Africa
Member
Hi Axel - okay a bit of confution for me here. I installed eclipse-cpp-helios-win32.zip (as well as MinGW-5.1.6 and MSYS-1.0.11 using their respective exe's) -- I thought this would imply that I have the latest CDT?

Sorry to ask for spoon feeding Axel - but if this is not the latest CDT - what should I install from http://svn.codespot.com/a/eclipselabs.org/wascana/repo/packa ges/ in my current installation(s) place? Or, do you simple mean grab the gdb.exe from wascana.gdb-7.1.0.2a.tar.gz and drop it into C:\MinGW\bin?

Looking at the help ABOUT menu in Eclipse HELIOS I am further confused (see screen shot below) - from what I see the GDB appears to already been installed?

http://michellepace.com/temp/About-Eclipse-Features.png


Thanks for your continued patience Axel... I realise it's serious baby steps here on my side... michelle
Re: Installing GDB (working from CDT "Before you begin") [message #542494 is a reply to message #542174] Fri, 25 June 2010 05:54 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Helios is the latest release. I asked because the help page you cited "Before you start..." is old. It was updated for Helios.
Anyway, I would suggest the following:
- remove the installed MinGW and MSys completely
- start Eclipse and goto Help->Install New Software..
- add a new software site by clicking Add button
- enter "Wascana" for the name and in the location field http://svn.codespot.com/a/eclipselabs.org/wascana/repo
- select the newly created site and select all but SDL and SDK
- follow the further instructions


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Installing GDB (working from CDT "Before you begin") [message #542616 is a reply to message #542494] Fri, 25 June 2010 12:52 Go to previous messageGo to next message
michelle  is currently offline michelle Friend
Messages: 87
Registered: April 2010
Location: South Africa
Member
I selected and installed everything but SDL. (if I deselected SDK I wouldn't have had anything to install)

I was wondering why they were keeping these tools external to eclipse! It's much better now.

thanks once again Axel Smile michelle

http://michellepace.com/temp/wascana-software-added.png



[Updated on: Fri, 25 June 2010 12:53]

Report message to a moderator

Re: Installing GDB (working from CDT "Before you begin") [message #542638 is a reply to message #542494] Fri, 25 June 2010 14:02 Go to previous message
Peter Viskovics is currently offline Peter ViskovicsFriend
Messages: 1
Registered: June 2010
Junior Member
Hi,

I have just upgraded from Galileo to Helios and I sadly realized that debugging became very problematic, because the "Breakpoint attribute problem: installation failed" problem came up and I couldn't put breakpoints (stepping was fine, it just took a bit long).
I have already upgraded mingw's gdb to 7.1-2 - it did not solve the problem. Then I disabled it by renaming, installed Wascana, but the problem still remained. I also have cygwin installed, but I don't think that gdb is used (I renamed that, too). I wonder how can I figure out which gdb is called when I start debugging?

Thanks in advance,
Visko

[Updated on: Fri, 25 June 2010 14:21]

Report message to a moderator

Previous Topic:automatically load c++ code style / templates from source tree
Next Topic:NO BUILD output in console window in CDT 7.0 (Helios)
Goto Forum:
  


Current Time: Thu Apr 25 01:31:11 GMT 2024

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

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

Back to the top