Install and configure the eclipse SDK. GDB provides debugging for the C/C ++ Development Environment [with self-recorded video]

Source: Internet
Author: User
Tags gdb debugger

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.