gdb升级
来源:互联网 发布:淘宝介入了还能取消吗 编辑:程序博客网 时间:2024/06/01 22:39
1.查看当前gdb安装情况
[root@localhost core]# rpm -qa | grep gdb
gdbm-1.8.0-36.el6.x86_64
gdbm-devel-1.8.0-36.el6.x86_64
eggdbus-0.6-3.el6.x86_64
gdb-7.2-60.el6_4.1.x86_64
2.删除当前gdb版本
[root@localhost core]# rpm -e --nodeps gdb-7.2-60.el6_4.1.x86_64
3.下载最新gdb文件
[root@localhost core]# wget http://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz
4.解压并cd到gdb目录
[root@localhost core]# tar -zxvf gdb-7.12.tar.gz
[root@localhost core]# cd gdb-7.12/
[root@localhost gdb-7.12]# ls
bfd config-ml.in COPYING depcomp install-sh ltgcc.m4 ltversion.m4 md5.sum opcodes src-release.sh
ChangeLog config.rpath COPYING3 djunpack.bat intl ltmain.sh MAINTAINERS missing readline symlink-tree
compile config.sub COPYING3.LIB etc libdecnumber lt~obsolete.m4 Makefile.def mkdep README texinfo
config configure COPYING.LIB gdb libiberty ltoptions.m4 Makefile.in mkinstalldirs README-maintainer-mode ylwrap
config.guess configure.ac cpu include libtool.m4 ltsugar.m4 Makefile.tpl move-if-change sim zlib
5.执行./configure脚本
[root@localhost gdb-7.12]# ./configure
6.编译
[root@localhost gdb-7.12]# make
7.make install
[root@localhost gdb-7.12]# make install
报错如下:
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
<http://www.gnu.org/software/texinfo/>
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
<http://www.gnu.org/software/make/>
make[5]: *** [gdb.info] Error 127
make[5]: Leaving directory `/home/share/bug/core/gdb-7.12/gdb/doc'
make[4]: *** [subdir_do] Error 1
make[4]: Leaving directory `/home/share/bug/core/gdb-7.12/gdb'
make[3]: *** [install-only] Error 2
make[3]: Leaving directory `/home/share/bug/core/gdb-7.12/gdb'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/share/bug/core/gdb-7.12/gdb'
make[1]: *** [install-gdb] Error 2
make[1]: Leaving directory `/home/share/bug/core/gdb-7.12'
make: *** [install] Error 2
解决方法:
yum install texinfo
重新make instal
8.拷贝编译好的gdb到指定路径
[root@localhost gdb-7.12]# cp gdb/gdb /usr/bin/gdb
9.查看gdb版本
[root@localhost gdb-7.12]# gdb -v
GNU gdb (GDB) 7.12
Copyright (C) 2016 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. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
结束
- 升级GDB
- gdb升级
- gdb调试升级命令
- 升级gdb 7.8.2
- Linux下升级gcc、gdb工具
- VMware中安装gcc和升级gdb的方法
- gdb和gcc升级:解决编译和调试时出现gdb no symbol in current context
- 因为dwarf2_read_address: Corrupted DWARF expression而升级GDB,附升级教程
- 因为dwarf2_read_address: Corrupted DWARF expression而升级GDB,附升级教程
- GDB
- gdb
- GDB
- GDB
- gdb
- GDB
- Gdb
- GDB
- gdb
- Kotlin简介
- json字符串、json对象、数组 三者之间的转换
- 如何让含有html标签的数据能正确的在前台显示
- 关于web项目log日志指定输出文件位置配置
- 小游戏game
- gdb升级
- bzoj1655 [Usaco2006 Jan] Dollar Dayz 奶牛商店(完全背包+高精)
- 在Maven中使用Tomcat组件
- spring多数据源配置+aop注解方式属性注入
- elasticsearch 5.5以及插件 elasticsearch-head 的安装(on win7 64 and mac)同时支持 mac 系统
- 数组逆序排列方法
- POJ
- mybatis返回类型resulttype之string和java.lang.string的不同点
- 2718_移动路线