gdb调试时出现Missing separate debuginfos

        在用gdb调试出现错误:Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.107.el6.i686


解决方法:

1、编辑/创建文件vi /etc/yum.repo.d/CentOS-Debuginfo.repo内容如下

[debug]
name=CentOS-6 - Debuginfo
baseurl=http://debuginfo.centos.org/6/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6
enabled=1

修改enabled为1


2、通过命令安装glibc

[root@localhost c]# debuginfo-install glibc
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile* base: mirrors.skyshe.cn* extras: mirrors.skyshe.cn* updates: mirrors.skyshe.cn
Checking for new repos for mirrors
--> Running transaction check
---> Package glibc-debuginfo.i686 0:2.12-1.107.el6 will be installed
--> Processing Dependency: glibc-debuginfo-common = 2.12-1.107.el6 for package: glibc-debuginfo-2.12-1.107.el6.i686
---> Package nss-softokn-debuginfo.i686 0:3.12.9-11.el6 will be installed
---> Package yum-plugin-auto-update-debug-info.noarch 0:1.1.30-30.el6 will be installed
--> Running transaction check
---> Package glibc-debuginfo-common.i686 0:2.12-1.107.el6 will be installed
--> Finished Dependency ResolutionDependencies Resolved====================================================================================================================================Package                                          Arch                  Version                          Repository            Size
====================================================================================================================================
Installing:glibc-debuginfo                                  i686                  2.12-1.107.el6                   debug                 10 Mnss-softokn-debuginfo                            i686                  3.12.9-11.el6                    debug                1.0 Myum-plugin-auto-update-debug-info                noarch                1.1.30-30.el6                    base                  25 k
Installing for dependencies:glibc-debuginfo-common                           i686                  2.12-1.107.el6                   debug                7.5 MTransaction Summary
====================================================================================================================================
Install       4 Package(s)Total size: 19 M
Total download size: 7.5 M
Installed size: 93 M
Is this ok [y/N]: y
Downloading Packages:
glibc-debuginfo-common-2.12-1.107.el6.i686.rpm                                                               | 7.5 MB     00:04     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running TransactionInstalling : glibc-debuginfo-common-2.12-1.107.el6.i686                                                                       1/4 Installing : glibc-debuginfo-2.12-1.107.el6.i686                                                                              2/4 Installing : yum-plugin-auto-update-debug-info-1.1.30-30.el6.noarch                                                           3/4 Installing : nss-softokn-debuginfo-3.12.9-11.el6.i686                                                                         4/4 Verifying  : glibc-debuginfo-common-2.12-1.107.el6.i686                                                                       1/4 Verifying  : nss-softokn-debuginfo-3.12.9-11.el6.i686                                                                         2/4 Verifying  : glibc-debuginfo-2.12-1.107.el6.i686                                                                              3/4 Verifying  : yum-plugin-auto-update-debug-info-1.1.30-30.el6.noarch                                                           4/4 Installed:glibc-debuginfo.i686 0:2.12-1.107.el6                                   nss-softokn-debuginfo.i686 0:3.12.9-11.el6               yum-plugin-auto-update-debug-info.noarch 0:1.1.30-30.el6               Dependency Installed:glibc-debuginfo-common.i686 0:2.12-1.107.el6                                                                                      Complete!


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部