12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-11-26 22:17:30
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
近期使用gdb调试分析mysql 8.0.18源码,发现gdb版本过低,无法有效跟踪mysql 8.0.18源码。另外,当时为了编译安装mysql 8.0.18源码,升级了默认的gcc版本到gcc 8.3.1。由此可见,gcc
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
近期使用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.
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19