https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113918
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 57433
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57433&action=edit
gcc14-pr113918.patch
Untested patch to emit DW_AT_export_symbols for those cases.
That said, I believe GDB must have some code to handle anonymous structs/unions
even without that, because e.g. on this new testcase p s.i just works even
without the patch (and after all, should even in DWARF4 and earlier where such
attribute wasn't there at all).