Adding gdb to MinGW

前端 未结 6 1446
太阳男子
太阳男子 2020-12-03 16:58

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

6条回答
  •  心在旅途
    2020-12-03 17:36

    Usually for installing gdb in windows, You have to 2 ways to install:

    1) use ready-made binaries that were build and compiled from GNU gdb by some provider (easy to install)

    • use TDM-GCC binaries provided from the following URL and that is including inturn the gcc complier and also gdb debugger. http://tdm-gcc.tdragon.net/
    • use Equation package inside which GNU GDB was already compiled and built. http://www.equation.com/servlet/equation.cmd?fa=gdb

    2) use minimal mingw or cygwin package then after install gdb inside it.

    • Install either mingw or cygwin inside which GDB is already shipped
    • Open cygwin or mingw terminal and just type the following to make sure it is already installed

      $ gdb --version

      1. Hint: if you did not find gdb installed, simply open the cygwin or mingw package installer and make sure you already check gdb
      2. Hint: getting and installing a debug build of the OHRRPGCE is providing useful information about crashes.
    • From cygwin or mingw terminal, Start gdb using the following c:\mingw\bin\gdb.exe program_to_debug.exe

    REF: http://rpg.hamsterrepublic.com/ohrrpgce/GDB_on_Windows

提交回复
热议问题