Data Structure Article 2: install and configure the eclipse sdk gdb to provide debugging for the C/C ++ Development Environment
Background: Error while launching command: gdb.exe -- version exception occurs during debug.
Cause: the gdb debugging tool is not installed.
Heard that the latest mingw has integrated GDB debugging tool, I installed the mingw 5.1.4 version does not integrate GDB, so you need to install gdb-6.3.2 independently
Existing environments: Eclipse SDK 3.7.0, mingw 5.1.4, and CDT 8.0.0
To install the gdb directory, select ---> the root directory of your mingw installation.
Similarly, I also recorded the above related installation and configuration into a video, provided the gdb-6.3.2 installation package and self-recorded small video,
If you need to go to download: Eclipse SDK installation and configuration GDB for C/C ++ development environment to provide debug debugging [with gdb-6.3.2 installation package and self-recording video]
After installing GDB, check whether the installation of GDB is successful ---> open CMD and enter GDB-version.
After confirming that GDB is successfully installed, open the eclipse SDK:
You can specify gdb debugger to gdb.exe of GDB you installed, or gdb.exe, Because I installed GDB to mingw, and mingw has been added to the path of the system.
Debug again
Error in final launch sequence
Failed to execute mi command:-GDB-set auto-solib-add on
Error message from debugger back end: No symbol table is loaded. Use the "file" command.
Next, you need to configure GDB:
---> Debugging configurations...
---> Select use workspace settings
---> Click cofigture workspace settings...
---> Launching ---> default launchers
---> Select the three [debug] Options on the right as standard create process launcher.
Click OK. If no such debugger exception occurs
Don't worry about it, turn it off and debug it again. If the no such debugger exception still occurs, re-enter:
Click OK.
Okay. Now we can debug it.