https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91997
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- The problem is not missing debuginfo, it's a GDB bug: https://sourceware.org/bugzilla/show_bug.cgi?id=25234 I have a workaround for libstdc++ though.