Debugging the C runtime
I want to get a detailed look at what's going on both before and after main() using GDB. Would it be enough just to recompile glibc with -g and link against that? if you want to play with the debugger, you can use GDB this way: install the debug-info for the `glibc` package ( here is the way to do it with Fedora, I don't know about the other distros) or point GDB to a consistent debug file directory: (gdb) show debug-file-directory The directory where separate debug symbols are searched for is "/usr/lib/debug". (gdb) set debug-file-directory ... (it's /usr/lib/debug/lib64/libc-2.14.so.debug in