实验室的服务器,OS是RHEL4,由于gcc版本过低,调用Eclipse调试gdb常常出错,无法监视变量值。经人提示 需降Eclipse和cdt的版本,尝试成功,记录如下:
系统环境:
lsb_release -a:
LSB Version::core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID:RedHatEnterpriseAS
Description:Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Release:4
Codename:NahantUpdate8
gdb --version
GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
版本选择:
Eclipse:eclipse-SDK-3.2.1-linux-gtk.tar.gz,此版本与RHEL4发布时间接近
jdk:jdk-6u25-linux-i586.bin
cdt:org.eclipse.cdt-3.1.2-I200703270600-linux.x86.tar.gz
多个网帖中都有提到 针对Eclipse3.2.*只能支持cdt3.1.*
浙公网安备 33010602011771号