gdb调试报Missing separate debuginfos

gdb调试开始时,报错,提示信息如下:

Detaching after fork from child process 4112.


Program exited normally.

Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 glibc-2.12-1.149.el6_6.5.x86_64 nspr-4.10.6-1.el6_5.x86_64 nss-3.14.0.0-12.el6.x86_64 nss-softokn-freebl-3.14.3-22.el6_6.x86_64 nss-util-3.16.2.3-2.el6_6.x86_64 openldap-2.4.39-8.el6.x86_64 openssl-1.0.1e-30.el6.8.x86_64 zlib-1.2.3-29.el6.x86_64


gdb调试报Missing separate debuginfos

yum install glibc安装,发现只是安装了一些基本库,并不包含 glibc-debuginfo,所以必须使用:

yum --nogpgcheck --enablerepo=debug install cyrus-sasl-debuginfo

yum --nogpgcheck --enablerepo=debug install glibc-debuginfo

。。。

安装yum -y --nogpgcheck --enablerepo=debug install openssl-debuginfo

Error Downloading Packages:

  openssl-debuginfo-1.0.1e-30.el6.8.x86_64: failure: openssl-debuginfo-1.0.1e-30.el6.8.x86_64.rpm from debug: [Errno 256] No more mirrors to try


gdb调试报Missing separate debuginfos

需要先修改“/etc/yum.repos.d/CentOS-Debuginfo.repo”文件的enable=1,即可解决这个错误。

根据报错提示,使用yum依次安装debug模式。