Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding gdb to MinGW

Tags:

mingw

gdb

I've gone to http://sourceforge.net/project/showfiles.php?group_id=2435, downloaded the Automated MinGW Installer for MinGW 5.1.4 and at the same time the GNU Source-Level Debugger Release Candidate: GDB 6.8-3. I've then installed MinGW base tools into C:\MinGW. No problem so far.

However when I come to install the gdb debugger it has a lot of files and folders with the same names as some already installed but the files are different to those already installed. e.g C:\MinGW\include\bfd.h is 171 KB but gdb-6.8-mingw-3\include\bfd.h is 184 KB.

How do I add gdb to MinGW without breaking what's already installed?

like image 797
Rob Kam Avatar asked Oct 04 '08 10:10

Rob Kam


People also ask

Does gdb come with MinGW?

The TDM GCC/MinGW32 builds installer includes gdb. It's gcc 4.4. x with all the core binary packages required for basic Windows development, and is widely used without any unusual problems.

Can I run gdb in Windows?

Starting GDBIn the windows command console, type arm-none-eabi-gdb and press Enter. You can do this from any directory. If you're unsure how to open the Windows command console, see Running OpenOCD on Windows. You can also run GDB directly from "Run" in the Start menu.

Where is gdb EXE located?

An installer for MinGW is available here. Bundled with this installation comes GDB, a classic debugger for C/C++ [2]. You can find it at path\\to\\MinGW\\bin\\gdb.exe `. So now you have a C/C++ compiler and a debugger.


1 Answers

In a command prompt I browsed to C:\MinGW\bin and ran:

mingw-get.exe install gdb 

That fixed it for me. Not sure if it matters but I have C:\MinGW\bin in my path (guess I probably didn't need to browse to C:\MinGW\bin).

like image 151
John Avatar answered Oct 21 '22 06:10

John