1. install (https://sourceforge.net/downloads/mingw) and configure MinGW with packages g++ gcc libc6-dev libtool pkg-config
  2. get gdb sources (I use 7.latest from https://www.gnu.org/software/gdb/) and put it into MinGW/msys/1.0 folder
  3. run ./configure in msys shell (MinGW\msys\1.0\msys.bat)
  4. run make and fix the following:
  5. hypot compile error with help of this '::hypot' has not been declared
  6. undefined constants for GetLastError function by adding #include <winerror.h> into \gdb\gdbserver\win32-i386-low.c \gdb\gdbserver\win32-low.c gdb\ser-mingw.c

I have checked build process using 7.11.1 and 7.12.1 sources

7.12.1 x32 is broken under windows https://github.com/Alexpux/MINGW-packages/issues/1909 https://sourceforge.net/p/mingw-w64/bugs/576/

Answer from se_pavel on Stack Overflow
🌐
OGG
rpg.hamsterrepublic.com › ohrrpgce › GDB_on_Windows
GDB on Windows
MinGW distributes a Windows version of gdb. You can get the latest mingw installer here which can in turn install gdb. After installing MinGW, run the "MinGW Installation Manager" (which for me was located in C:\MinGW\libexec\mingw-get\guimain.exe ) and then make sure that the mingw32-gdb bin ...
🌐
Windows 7 Download
windows7download.com › free-win7-gdb
Gdb Windows 7 - Free Download Windows 7 Gdb - Windows 7 Download
... a robust tool that integrates Visual Studio with GDB, the GNU Debugger, allowing you to supercharge your ... VisualGDB Sysprogs Visual Studio extension GNU Make Cross-platform coding GNU Advanced IntelliSense Embedded development Debugging tools debugger Windows 7 software debug GNU debugger
🌐
GNU
gnu.org › software › gdb › gdb.html
GDB: The GNU Project Debugger
Those programs might be executing ... popular UNIX and Microsoft Windows variants, as well as on Mac OS X. GDB supports the following languages (in alphabetical order): ... Version 11.1 of GDB, the GNU Debugger, is now available for download....
🌐
SourceForge
sourceforge.net › home › open source software › software development › integrated development environments (ide) › lazarus › files
Lazarus - Browse /Lazarus Windows 32 bits/Alternative GDB/GDB 7.7.1 ...
Please download and install Lazarus from one of the other folders in the "Lazarus Windows 32 bit" directory. The Lazarus installers include a version of GDB.
🌐
GNU Project
sourceware.org › gdb › download
Download GDB
You can download the most recent official release of GDB from either Project GNU's HTTPS server, or Red Hat's sources site: ... (mirrors) As with all GNU projects, you can verify the signatures for gnu project files with the keyring file from:
🌐
Admb-project
admb-project.org › tools › gdb
GDB for Windows
Version 6.8 of the GNU debugger for 32-bit Windows. Prepared by Arni Magnusson, from http://sourceforge.net/projects/mingw/files/MinGW/Extension/gdb/. ... Version 7.0.50 of the GNU debugger for 32-bit Windows.
Find elsewhere
🌐
GNU Project
sourceware.org › gdb
GDB: The GNU Project Debugger
The latest version of GDB, version 16.2, is available for download. This is a corrective release over GDB 16.1, fixing the following issues: PR build/32578 (cannot build GDB 16.1 out of tree when calling the configure script with a relative path) PR tui/32592 ([gdb/tui] internal error in tui-winsource.c:340:refresh_window)
🌐
Windows 7 Download
windows7download.com › win7-visualgdb › octwjpuf.html
VisualGDB for Windows 7 - "Explore VisualGDB: A Windows 7 software marvel!" - Windows 7 Download
VisualGDB 6.0r8 download - Windows 7 - "Explore VisualGDB - a robust Windows 7 software for seamless cross-platform coding!"
🌐
GNU
gnu.org › software › gdb › download
Download GDB
You can download the most recent official release of GDB from either Project GNU's FTP server, or Red Hat's sources site: http://ftp.gnu.org/gnu/gdb (mirrors) ftp://sourceware.org/pub/gdb/releases/ (mirrors). As with all GNU projects, you can verify the signatures for gnu project files with ...
🌐
Windows 7 Download
windows7download.com › win7-wingdb › ncbbulql.html
WinGDB for Windows 7 - "Elevate Debugging with WinGDB" - Windows 7 Download
WinGDB 6.0 B2701 download - Windows 7 - "Streamline your debugging process with this powerful Windows 7 tool."
Top answer
1 of 3
4

Steps to add gdb.exe Open MinGW Installation Manager select package "mingw32-gdb" from the list. Then select "Apply Changes" in Installation menu. This will automatically install gdb.exe in the path C:\MinGW\bin.

2 of 3
1

Please let me suggest you debugger program TDM-GCC. For download and install visit

http://wiki.codeblocks.org/index.php?title=MinGW_installation

Because a debugger program (toolchain) is very complex undertaking, is not standard in Code::Blocks. You must download it and install on Code::Blocks.

Note: It is impossible copy and paste images here. In the case linked page changes, I, or another one, should suggest new link.

However following are instructions according to images and my experience.

  1. Download TDM-GCC from https://jmeubank.github.io/tdm-gcc/download/ click [tdm64-gcc-10.3.0-2.exe] and run it.

  2. In Wizard Action window - Click [Create].

  3. In Select Edition window - If MinGW/TDM (32-bit) is not checked, check it. Click [Next>].

  4. In Licence Changes window - Click [Next>].

  5. In New Instalation: Instalation Directory window - If text box is "C:\TDM-GCC-32", it's okay. If is not, click [Browse ...], and navigate: C:\ > TDM-GCC-32 > click [OK]. Now text box is C:\TDM-GCC-32. Click [Next>].

If a small window appears saying The directory TDM-GCC-32 is not empty! Are you sure you want to install here?. Click [Yes].

  1. In New Installation: Download Mirror window - Click [Next>].

  2. In New Installation: Choose Components window - Check whether Add to PATH box is checked. Actually is checked. Click [Install].

  3. In Installing window - Wait till [Next] become black. Then click it. Even if Instalation Failed window appears click [Next].

  4. In Completing the TDM-GCC Setup Wizard window - Click [Finish].

  5. Go to Code Blocks > Settings > Compiler.

10a. In Global compiler settings window click "Toolchain executables". Just below, find "Compiler's installation directory". If the below text field is C:\TDM-GCC-32, it's okay. If not, click the [...] at the end of the field. In "Select directory" wizard, navigate to C:\TDM-GCC-32. Now "Folder:" should be TDM-GCC-32. Click [Select a folder] in "Select directory" wizard.

10b. In Global compiler settings. Below red "Note:..." find "Program Files" > "Debuger". If text field reads "GDB/CDB debuger : Default", it's okay, click [OK]. If not, click the down arrow at the end of the field > choose "GDB/CDB debuger : Default". Check that text field is "GDB/CDB debuger : Default". Click [OK].

  1. Go to Code Blocks > Settings > Debugger... . In Common window, left list, click "Default". If "Executable path:"'s text field is "C:\TDM-GCC-32\bin\gdb32.exe", it's okay, click [OK]. If not, click [...] button and navigate C: > TDM-GCC-32 > bin > click gdb32 (or gdb32.exe) file > click [open] in "Select executable file" wizard. "Executable path:" should be C:\TDM-GCC-32\bin\gdb32.exe. Click [OK]. Now you can debug your program.

  2. If Debugger does not function, close Code Blocks and restart them.

Regards.

🌐
GNU Project
sourceware.org › gdb › download › ANNOUNCEMENT
GDB 16.3
You can download GDB from the GNU HTTPS server in the directory: https://ftp.gnu.org/gnu/gdb/?C=M;O=D The vital stats: Size sha256sum Name 24MiB bcfcd095528a987917acf9fff3f1672181694926cc18d609c99d0042c00224c5 gdb-16.3.tar.xz 40MiB 86015081217dc82c5485db9ce864dcc0b703759d2bdbe4441b095c5f
🌐
Stack Overflow
stackoverflow.com › questions › 18912471 › how-to-install-gdb-with-python-support-on-windows-7
debugging - How to install GDB with Python support on Windows 7 - Stack Overflow
I use Windows 7, Python 2.7 64bit and Visual Studio 2008. Also suggestions about alternative ways to debug cython (especially concerning non-console visual debuggers) are welcome. Thanks in advance for your help! ... Your best bet is to install Python(x,y). It has Cython and gdb-python27 all bundled together.
🌐
Gdbgui
gdbgui.com › installation
Installation - gdbgui
If you do not have already have gdb/make/gcc installed, there are two options to install them on Windows: MinGW and cygwin. Minimal GNU for Windows (MinGW) is the recommended Windows option. Install MinGW with the "MinGW Base System" package.
🌐
Win7dwnld
win7dwnld.com › app › wingdb
WinGDB download - An extension for Visual Studio allowing to d - win7dwnld.com
WinGDB Windows 7 Download - An extension for Visual Studio allowing to develop programs with GNU tools.
🌐
Lazarus
forum.lazarus.freepascal.org › index.php
gdb for windows 64 bit
gdb for windows 64 bit · Free Pascal · Website · Downloads · Wiki · Documentation · Bugtracker · Mailing List · Lazarus · Website · Downloads (Laz+FPC) Packages (OPM) FAQ · Wiki · Documentation (RTL/FCL/LCL) Bugtracker · CCR Bugs · GIT · Mailing List ·