温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

升级redhat 6.8 默认gdb 7.2到gdb 8.3.1的操作方法

发布时间:2021-10-29 09:25:15 来源:亿速云 阅读:122 作者:柒染 栏目:MySQL数据库

这期内容当中小编将会给大家带来有关升级redhat 6.8 默认gdb 7.2到gdb 8.3.1的操作方法,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

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

已安装 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

总用量 37244

drwxr-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.

上述就是小编为大家分享的升级redhat 6.8 默认gdb 7.2到gdb 8.3.1的操作方法了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI