Encountered while using GDB
Missing separate debuginfos, use: debuginfo-install glibc-2.17-157.el7_3.5.x86_64
Modify enable = 1 of “/ etc/yum. Repos. D/CentOS debuginfo. Repo” file first; If the file does not exist, create it manually and add the following contents:
[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
Then execute
sudo yum install -y glibc
sudo debuginfo-install glibc
If GDB cannot run after this, a prompt message will appear
error while loading shared libraries: libcunit.so.1: cannot open shared object file: No such file or directory
[Inferior 1 (process 23252) exited with code 0177]
resolvent
sudo find/-name "libcunit.so.1"
After finding the corresponding path, copy libcunit. So. 1 to the/lib64 directory
cp <find_path> /lib64
Then you can run normally.