GDB debugging problems missing separate Debuginfos, Use:debuginfo-install glibc-xxx

Source: Internet
Author: User
Tags gpg

When debugging with GDB under CentOS6.4,

When using the BT (breaktrace) command, the following prompt pops up:

First day Tip:

Missing separate Debuginfos, Use:debuginfo-install glibc-2.12-1.107.el6.i686

Problem is not resolved, the next day prompt:

Missing separate Debuginfos, Use:debuginfo-install glibc-2.12-1.132.el6.i686

However, when prompted to use Debuginfo-install glibc-2.12-1.132.el6.i686 to install the message will be reported as follows:

Loaded plugins:fastestmirror, refresh-packagekitloading mirror speeds from cached hostfile * base:mirrors.yun-idc.com * extras:mirrors.yun-idc.com * updates:mirrors.yun-idc.comchecking for new repos for Mirrorsno debuginfo packages availabl E to install

To install by using Yum:

But hint: Error downloading packages:glibc-debuginfo-common-2.12-1.132.el6.i686:failure: glibc-debuginfo-common-2.12-1.132.el6.i686.rpm from debug: [Errno) No more mirrors to try.
Glibc-debuginfo
Later search found the need to first modify the "/etc/yum.repos.d/centos-debuginfo.repo" file enable=1
The contents of the file are as follows:
# centos-Debug.repo # # Mirror system uses the connecting IP address of the client and the # Update status O  F each mirror to pick mirrors is updated to and # geographically close to the client. Should use This  forCentOS Updates # Unless you is manually picking other mirrors. # # All Debug Packages fromAll the various centos-5releases # is merged into a single repo, split by Basearch # # Note:packagesinchThe debuginfo repo is currently not signed # [debug] name=centos-6-Debuginfo BaseURL=http://debuginfo.centos.org/6/$basearch/gpgcheck=1Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-debug-6Enabled=1  
After saving, use debuginfo-install glibc-2.12-1.132.el6.i686 installation, the output is as follows:  
Loaded Plugins:fastestmirror, refresh-packagekit Loading Mirror speeds fromCached Hostfile*Base: mirrors.yun-idc.com* extras:mirrors.yun-idc.com* updates:mirrors.yun-idc.com Debug |2.5Kbxx:xxChecking for NewRepos forMirrors-Running Transaction Check---> Package glibc-debuginfo.i6860:2.12-1.132. El6 'll be installed--Processing Dependency:glibc-debuginfo-common =2.12-1.132. el6 forPackage:glibc-debuginfo-2.12-1.132. el6.i686---> Package nss-softokn-debuginfo.i6860:3.12.9- One. El6 'll be installed---> Package yum-plugin-auto-update-debug-info.noarch0:1.1. -- -. El6_5 'll be installed-Running Transaction Check---> Package glibc-debuginfo-common.i6860:2.12-1.132. El6 'll be installed-finished Dependency Resolution Dependencies resolved=============================================================================================================== ==============================================Package Arch Version Repository Size=============================================================================================================== ==============================================INSTALLING:GLIBC-debuginfo i6862.12-1.132. el6 DebugTenM NSS-softokn-debuginfo i6863.12.9- One. el6 Debug1.0M Yum-plugin-auto-update-debug-info Noarch1.1. -- -. El6_5 Updates AK Installing forDEPENDENCIES:GLIBC-debuginfo-common i6862.12-1.132. el6 Debug7.5M Transaction Summary=============================================================================================================== ==============================================Install4Package (s) Total size: +M Total Download size:8.6M installed size: theM is ThisOK [y/N]: y downloading Packages: (1/3): glibc-debuginfo-common-2.12-1.132. el6.i686.rpm |7.5MB A:Geneva           (2/3): nss-softokn-debuginfo-3.12.9- One. el6.i686.rpm |1.0MB on: About           (3/3): yum-plugin-auto-update-debug-info-1.1. -- -. el6_5.noarch.rpm | AKbxx:xx--------------------------------------------------------------------------------------------------------------- ----------------------------------------------Total  Tenkb/s |8.6MB -:TenRunning rpm_check_debug Running Transaction Test Transaction test succeeded Running Transact Ion INSTALLING:GLIBC-debuginfo-common-2.12-1.132. el6.i6861/4INSTALLING:GLIBC-debuginfo-2.12-1.132. el6.i6862/4Installing:yum-plugin-auto-update-debug-info-1.1. -- -. el6_5.noarch3/4Installing:nss-softokn-debuginfo-3.12.9- One. el6.i6864/4VERIFYING:GLIBC-debuginfo-common-2.12-1.132. el6.i6861/4Verifying:nss-softokn-debuginfo-3.12.9- One. el6.i6862/4VERIFYING:GLIBC-debuginfo-2.12-1.132. el6.i6863/4Verifying:yum-plugin-auto-update-debug-info-1.1. -- -. el6_5.noarch4/4INSTALLED:GLIBC-debuginfo.i6860:2.12-1.132. el6 nss-softokn-debuginfo.i6860:3.12.9- One. el6 Yum-plugin-auto-update-debug-info.noarch0:1.1. -- -. El6_5 Dependency installed:glibc-debuginfo-common.i6860:2.12-1.132. el6 Complete!
OK, problem solved.
Second Installation Summary:
1, the need to first modify the "/etc/yum.repos.d/centos-debuginfo.repo" file enable=1;
2 . Install glibc using sudo yum.
3, using debuginfo-install glibc-2.12-1.132.el6.i686 installation. 
Tested and installed successfully.

GDB debugging problems missing separate Debuginfos, Use:debuginfo-install glibc-xxx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.