从gdb 7.7升级到7.8

Modified on: Thu, 14 Jun 2018 05:33:53 +0800

如何将我的GDB调试器从当前版本7.7升级到下一版本7.8,我还在研究Ubuntu 14.04.1?

最佳答案

目前,可信赖的回购中没有gdb 7.8。但您可以从源代码安装它。

打开终端并输入以下命令

wget http://ftp.gnu.org/gnu/gdb/gdb-7.8.tar.xz
tar -xf gdb-7.8.tar.xz     
cd gdb-7.8/     
./configure
make
sudo cp gdb/gdb /usr/local/bin/gdb

它将在gdb目录中安装/usr/local/bin/。每当执行命令时,在/usr/local/bin/之前搜索/usr/bin/,运行gdb将执行gdb 7.8

安装完成后,您可以使用

检查gdb版本

gdb --version

应输出

GNU gdb (GDB) 7.8
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".


如果要卸载它,只需通过执行

gdb中删除/usr/local/bin/

sudo rm /usr/local/bin/gdb
作者:,g_p

相关问答

添加新评论