Hello,
I wanted to single-step in the source code of a handful functions that are part of glibc6. Getting symbols and stepping through the machine code is easy, however, to do source code you need line number information.
What is the proper way of doing this?
- Compiling the entire glibc6 which is several megabytes of source code - which is a lot of effort and may cause subsequent issues
- Compile the handful of functions in a separate shared library that you debug - very nice, however I attempted this, and the functions do not handily compile by themselves due to some obscure dependencies. May be workable.
- Pull the functions into your own program, which may or may not be possible and may suffer from same difficulties as in b.
- Something else, such as downloading a debug-compiled libc from somewhere or some other easy way out
Any suggestions? I Googled and it appears not many people do this...
Regards,
Harald Rudell