参考
[1] GDB-10.2
[2] README for GDB release
个人系统 Ubuntu20.10。
注意gdb10.2需要c++11语法,需要安装g++
- 下载安装包
wget https://ftp.gnu.org/gnu/gdb/gdb-10.2.tar.xz
- 解压缩
tar -xvzf gdb-10.2.tar.xz
- 进入解压之后的目录
mkdir build
cd build
- 配置,安装tui mode,
../configure --enable-tui
此处注意,可能会提示你没有相关库configure: WARNING: no enhanced curses library found; disabling TUI
查阅官方发现:Build GDB with the text-mode full-screen user interface (TUI).Requires a curses library (ncurses and cursesX are also supported).
你需要安装ncurses
库,才能安装tui。Linux安装Ncurses库
参考 configure: WARNING: no enhanced curses library found; disabling TUI
make
sudo make all install
gdb -v
查看当前版本,是10.2
具体细节以及其他遇到的问题,请自行查阅官方文档,相关链接本文全部给出,本文不可能解决你所有的问题。
特别注意,不同版本的软件,安装流程可能差不多,但是会有所不同,因此请查阅最新版本的官方文档。