CentOS環境下,gdb調試中出現:Missing separate debuginfos, use: debuginfo-install.....的問題
睿豐德科技 專注RFID識別技術和條碼識別技術與管理軟件的集成項目。質量追溯系統、MES系統、金蝶與條碼系統對接、用友與條碼系統對接
在gdb調試時segmentation fault問題時,遇到下面的了問題:
Program received signal SIGABRT, Aborted.
0x00007ffff73eb925 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
Missing separate debuginfos, use: debuginfo-install libgcc-4.4.7-3.el6.x86_64
1、 修改文件/etc/yum.repos.d/CentOS-Debuginfo.repo中的enabled參數,將其值修改為1,如:vi /etc/yum.repos.d/CentOS-Debuginfo.repo
2、 使用命令:
yum install nss-softokn-debuginfo --nogpgcheck
3、 使用命令:
debuginfo-install glibc
如果出現下面的問題:
-bash: debuginfo-install: command not found
則先安裝yum-utils,使用命令:
yum install yum-utils