title: How to install glibc with debugging info on CentOS 5.5
body: <p>I am working through Zed Shaw's Learn C the Hard Way.</p>
  
  <p>In the chapter on Valgrind, the section <a href="http://c.learncodethehardway.org/book/learn-c-the-hard-waych5.html#x10-320005.3" rel="nofollow" title="What You Should See">"What you should see"</a> has line numbers for various glibc functions.</p>
  
  <p>I've determined that (obviously) my CentOS 5.5 install has the non-debug glibc installed. However yum does not list glibc-dbg (or anything similar:</p>
  
  <pre><code>[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
  </code></pre>
  
  <p>I've bricked Linux boxes in the past by haphazardly installing packages (either via packages or building from source), so I want to know what I'm doing here.  </p>
  
  <p>Questions:</p>
  
  <ol>
  <li><p>Since I have glibc-devel already installed, are the debug libraries perhaps already there and I just need to link to them and/or add a compilation switch?</p></li>
  <li><p>If I re-build glibc from source (or install a package) with debugging enabled, how can I be sure not to accidentally brick the machine (i.e. because building the wrong package and triggering library incompatibilities)?</p></li>
  </ol>