Get the App
SLTechnology News&Howtos  ›  Database  › 

How to upgrade redhat 6.8 default gdb 7.2 to gdb 8.3.1

Shulou Source: shulou.com Published: 2022-05-31 16:06:03 11月12日 Update

In this issue, the editor will bring you the operation method of upgrading redhat 6.8 default gdb 7.2 to gdb 8.3.1. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

Recently, using gdb to debug and analyze the mysql 8.0.18 source code, it is found that the gdb version is too low to effectively track the mysql 8.0.18 source code. In addition, in order to compile and install the mysql 8.0.18 source code, the default gcc version was upgraded to gcc 8.3.1. Thus it can be seen that there is a compatible dependency between gcc and gdb versions.

Textinfo-6.6.tar.gz is installed

Gdb 8.3.1 installation Media

Http://ftp.gnu.org/gnu/gdb/

Extract the gdb 8.3.1 installation media

[root@mysql8018 gdb_dir] # tar zxvf gdb-8.3.1.tar.gz

[root@mysql8018 local] # cd / gdb_dir/

[root@mysql8018 gdb_dir] # ll

The total dosage is 37244

Drwxr-xr-x. 17 root root 4096 December 3 22:44 gdb-8.3.1

-rw-r--r--. 1 root root 38130999 December 3 22:28 gdb-8.3.1.tar.gz

Execute 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

Execute make

[root@mysql8018 gdb-8.3.1] # make

Execute make install

[root@mysql8018 gdb-8.3.1] # make install

Verify 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

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

The above is the operation method of upgrading redhat 6.8 default gdb 7.2 to gdb 8.3.1 shared by Xiaobian. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Upgrade source code version analysis method media content effective professional small and medium between rich in content that is articles more dosage thus it can be seen that knowledge articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology MySQL Docker vpn Linux