linux 安装gdb 低版本,linux – 安装旧的gdb版本

我遇到了最新gdb的问题,所以我想使用较旧的gdb.我找到了gdb存档

here但是如何编译/安装其中一个以便可以使用?

根据manual,首先配置:

$./configure

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

[...]

configure: creating ./config.status

config.status: creating Makefile

然后做:

$make

make[1]: Entering directory '/root/Desktop/gdb-7.7'

Configuring in ./libiberty

configure: creating cache ./config.cache

checking whether to enable maintainer-specific portions of Makefiles... no

checking for makeinfo... /root/Desktop/gdb-7.7/missing makeinfo --split-size=5000000

[...]

但它会导致错误:

remote-utils.c:436:19: error: ‘hexchars’ defined but not used [-Werror=unused-const-variable=]

static const char hexchars[] = "0123456789abcdef";

^~~~~~~~

cc1: all warnings being treated as errors

Makefile:238: recipe for target 'remote-utils.o' failed

make[4]: *** [remote-utils.o] Error 1

make[4]: Leaving directory '/root/Desktop/gdb-7.7/gdb/gdbserver'

Makefile:1345: recipe for target 'subdir_do' failed

make[3]: *** [subdir_do] Error 1

make[3]: Leaving directory '/root/Desktop/gdb-7.7/gdb'

Makefile:1018: recipe for target 'all' failed

make[2]: *** [all] Error 2

make[2]: Leaving directory '/root/Desktop/gdb-7.7/gdb'

Makefile:8611: recipe for target 'all-gdb' failed

make[1]: *** [all-gdb] Error 2

make[1]: Leaving directory '/root/Desktop/gdb-7.7'

Makefile:832: recipe for target 'all' failed

make: *** [all] Error 2

关于降级程序的指南发现here也没有帮助,因为我总是得到“找不到版本”错误:

$sudo apt-get install gdb="7.8.1"

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Version '7.8.1' for 'gdb' was not found

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值