https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81932
--- Comment #9 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> --- (In reply to Xi Ruoyao from comment #8) > I'll try more -gxxx options to see if we need a new flag. This works for: -g -g2 -g3 -ggdb -ggdb2 -ggdb3 -gdwarf -gdwarf-{2,3,4} -gdwarf -gstrict-dwarf -g -gz Not works for: -g1, -ggdb1 (GCC 7.2 also doens't work, say "no symbol tv") -gstabs{,+} (Don't support templates at all) Not tested: -gvmx -gcoff -gxcoff (Don't support Linux target) -gdwarf-5 (My GDB can't read it)