User forums > Help

Adding GDB to MinGW

(1/2) > >>

Sechem:
Hi

i installed MinGW on Vista with the installer. But the GDB Debugger isn't included. If I download the GDB package from http://sourceforge.net/projects/mingw/files/ how can I add it to MinGW? Simply drag it to the folder?

Sechem

MortenMacFly:

--- Quote from: Sechem on March 27, 2010, 08:03:42 pm ---how can I add it to MinGW? Simply drag it to the folder?

--- End quote ---
If you mean the MinGW folder: Yes.

Sechem:
Okay, that's the problem. It doesn't work. I dragged the whole extracted GBD-Folder to the MinGW folder. Then I told CodeBlocks under Toolchain Executebles to use this debugger (I selected gdb.exe). But if I try to debug, it only sais that the Toolchain Executable is not set.

Can anyone help?

stahta01:
Does gdb.exe exist in the bin folder under the MinGW GCC Installation directory?
If not, you did something wrong.

IIRC, the steps to do it right.
1. Install 7-zip
2. Download the GDB Bin file from MinGW
3. Move GDB Bin file to MinGW Installation folder
4. Right click of file and choose extract here
5. Right click on created .tar file and choose extract here
6. Verify the GDB.exe exists in bin folder.

Tim S.

oBFusCATed:
Another thing, try to run gdb from the console (cmd.exe/command prompt on windows)

Navigation

[0] Message Index

[#] Next page

Go to full version