Environment:
$ Lsb_release-
LSB Version: base-4.0-amd64: base-4.0-noarch: core-4.0-amd64: core-4.0-noarch: printing-4.0-amd64: printing-4.0-noarch:
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
Codename: Final
$ Rpm-qa | grep-I gdb
Gdb-7.2-60.el6.x86_64
Gdbm-1.8.0-36.el6.x86_64
Eggdbus-0.6-3.el6.x86_64
In CentOS 6.4, the following error will pop up after debugging the project using Eclipse Juno CDT (4.2.2) at the compilation point:
The Details are as follows:
Error in final launch sequence
Failed to execute MI command:
Maintenance set python print-stack off
Error message from debugger back end:
Undefined maintenance set python command: "print-stack off". Try "help maintenance set python ".
Undefined maintenance set python command: "print-stack off". Try "help maintenance set python ".
Later, google deleted the commands in the new version of gdb because of the upgrade of gdb in CentOS 6.4, and Eclipse Juno CDT just used these commands.
Http://www.eclipse.org/forums/index.php/m/1019746/
Solution:
Downgrade gdb to CentOS 6.3
# Yum downgrade http://mirrors.163.com/centos/6.3/ OS /x86_64/Packages/gdb-7.2-56.el6.x86_64.rpm
Recommended reading:
Import Maven project to Eclipse4.2 from GitHub
Eclipse SDK 4.2.2/Equinox 3.8.2 released