g_p*_*g_p 13
gdb 7.8 目前在trusty repo 中不可用。但是您可以从源代码安装它。
打开终端并输入以下命令
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
Run Code Online (Sandbox Code Playgroud)
它将安装gdb在/usr/local/bin/目录中。正如/usr/local/bin/之前搜索过的,/usr/bin/无论何时执行命令, runninggdb都会执行gdb 7.8。
安装后,您可以使用检查 gdb 版本
gdb --version
Run Code Online (Sandbox Code Playgroud)
它应该输出
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".
Run Code Online (Sandbox Code Playgroud)
如果你想卸载它简单地删除gdb从/usr/local/bin/通过执行
sudo rm /usr/local/bin/gdb
Run Code Online (Sandbox Code Playgroud)