When I tried to debug libgcc_so.so, which is compiled with -g1, I couldn't get anything debug info on Linux/x86 with DWARF2. On Linux/mips with stabs, the function line numbers are all wrong. Recompiling libgcc_so.so with -g fixes both DWARF2 and stabs. H.J.