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? 回答1: 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