How to install glibc with debug information on CentOS 5.5

I work through the Zed Shaw Learn C Hard Way.

In the chapter on Valgrind, the “What You See” section has line numbers for different glibc functions.

I determined that (obviously) my CentOS 5.5 installation has non-debug glibc. However, yum does not list glibc-dbg (or something similar:

[nzucker:~/projects/lcthw]$ yum info \*glibc\* | grep Name
Name       : glibc
Name       : glibc
Name       : glibc-common
Name       : glibc-devel
Name       : glibc-devel
Name       : glibc-headers
Name       : compat-glibc
Name       : compat-glibc
Name       : compat-glibc-headers
Name       : glibc-utils

In the past, I blocked Linux boxes by accidentally installing packages (either through packages or from source), so I want to know what I'm doing here.

Questions:

  • Since I already have glibc-devel installed, maybe debug libraries already exist, and I just need to link them and / or add a compiler?

  • glibc ( ) , , (.. - )?

+3
1

CentOS debuginfo-install. :

debuginfo-install glibc

debuginfo. CentOS 5 /etc/yum.repos.d/CentOS-Base-debuginfo.repo:

[base-debuginfo]
name=CentOS-$releasever - DebugInfo
baseurl=http://debuginfo.centos.org/$releasever/$basearch/
gpgcheck=0
enabled=0
protect=1
priority=1

: , Google, CentOS 6: CentOS 5. CentOS CentOS 6, CentOS 6 debuginfo . debuginfo CentOS 6.

+10

All Articles