歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS 6.4和Eclipse Juno CDT(4.2.2)的bug

CentOS 6.4和Eclipse Juno CDT(4.2.2)的bug

日期:2017/2/28 14:45:21   编辑:Linux教程

環境:

$ lsb_release -a
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

CentOS 6.4下使用Eclipse Juno CDT(4.2.2)的項目在編譯點調試後會彈出如下錯誤:

其中Details內容為:

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".

後來經過google,大致是因為CentOS 6.4的gdb有升級,新版的gdb內刪掉了一下命令,而Eclipse Juno CDT又剛好使用了這些命令。

http://www.eclipse.org/forums/index.php/m/1019746/

解決辦法:

降級gdb,降為CentOS 6.3使用的版本

# yum downgrade http://mirrors.163.com/centos/6.3/os/x86_64/Packages/gdb-7.2-56.el6.x86_64.rpm

Copyright © Linux教程網 All Rights Reserved