GDB debugging report missing separate debuginfos problem solving

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

##Environment:

os: centos 7.3

Problem description

When debugging with GDB, the following error appears

Missing separate debuginfos, use: debuginfo-install glibc-2.17-196.el7_4.2.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 nss-softokn-freebl-3.28.3-8.el7_4.x86_64

Solutions

1. Open debuginfo repo

Create in/etc/yum.repos.d/ or modify enabled = 1 in the existing CentOS debuginfo. Repo file to enable repo

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

2. Update yum

yum makecache fast

3. Install Yum utils

debuginfo install this command is included from the yum utils package

yum install yum-utils -y

4. Install debuginfo package

Execute the following command to install

debuginfo-install glibc-2.17-196.el7_4.2.x86_64 libgcc-4.8.5-16.el7_4.2.x86_64 libstdc++-4.8.5-16.el7_4.2.x86_64 nss-softokn-freebl-3.28.3-8.el7_4.x86_64

Similar Posts: