升级redhat 6.8 默认gdb 7.2到gdb 8.3.1操作指南

来源:这里教程网 时间:2026-03-01 14:45:01 作者:

摘要

   近期使用gdb调试分析mysql 8.0.18源码,发现gdb版本过低,无法有效跟踪mysql 8.0.18源码。另外,当时为了编译安装mysql 8.0.18源码,升级了默认的gcc版本到gcc 8.3.1。由此可见,gcc与gdb版本之间兼容依赖关系。

相关阅读     redhat 6.8升级默认cmake 2.8到cmake 3.9   mysql source code源代安装的前提条件requirement   redhat 6.8采用source code源码安装mysql 8.0.18操作指南   redhat 6.8升级默认gcc 4.4.7到gcc 5.3.0操作指南

联系方式

微信公众号

(欢迎大家关注,每天会在微信公众号发布其它的数据库文章)

微信

培训课件

(收费20元已共享到百度云盘便于同学们获取)

目录

前提条件

gdb 8.3.1安装介质

解压 gdb 8.3.1安装介质

执行configure

执行make

执行make install

验证gdb 8.3.1

前提条件

已安装 textinfo-6.6.tar.gz

gdb 8.3.1安装介质

http://ftp.gnu.org/gnu/gdb/

解压gdb 8.3.1安装介质

[root@mysql8018 gdb_dir]# tar zxvf gdb-8.3.1.tar.gz[root@mysql8018 local]# cd /gdb_dir/[root@mysql8018 gdb_dir]# ll总用量 37244drwxr-xr-x. 17 root root     4096 12月  3 22:44 gdb-8.3.1-rw-r--r--.  1 root root 38130999 12月  3 22:28 gdb-8.3.1.tar.gz

执行configure

[root@mysql8018 gdb-8.3.1]# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-1.1.0/lib:/usr/local/mpfr-3.1.2/lib:/usr/local/gmp-5.1.3/lib[root@mysql8018 gdb-8.3.1]# [root@mysql8018 gdb-8.3.1]# locate textinfo|grep -i --color /bin/textinfo_dir/texinfo-6.6/tp/maintain/lib/libintl-perl/sample/simplecal/bin/textinfo_dir/texinfo-6.6/tp/maintain/lib/libintl-perl/sample/simplecal/bin/simplecal.pl/usr/local/textinfo-6.6/bin[root@mysql8018 gdb-8.3.1]# export PATH=$PATH:/usr/local/textinfo-6.6/bin[root@mysql8018 gdb-8.3.1]# [root@mysql8018 gdb-8.3.1]# ./configure --prefix=/usr/local/gdb-8.3.1

执行make

[root@mysql8018 gdb-8.3.1]# make

执行make install

[root@mysql8018 gdb-8.3.1]# make install

验证gdb 8.3.1

[root@mysql8018 ~]# /usr/local/gdb-8.3.1/bin/gdb --version

GNU gdb (GDB) 8.3.1

Copyright (C) 2019 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.

相关推荐