https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119766
Simon Marchi <simon.marchi at polymtl dot ca> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #6 from Simon Marchi <simon.marchi at polymtl dot ca> --- (In reply to Tom de Vries from comment #5) > In the dwarf 5 standard I read: > ... > F.2.3 > Contents of the Split DWARF Object Files > The split DWARF object files each contain the following sections: > .debug_abbrev.dwo > .debug_info.dwo (for the compilation unit) > .debug_info.dwo (one COMDAT section for each type unit) > .debug_loclists.dwo > .debug_line.dwo > .debug_macro.dwo > .debug_rnglists.dwo > .debug_str_offsets.dwo > .debug_str.dwo > ... > so that seems to confirm that the gcc output is in fact standard conformant. > > One problem though is that dwp, while supporting multiple .debug_types.dwo > sections doesn't seem to support multiple debug_info.dwo sections. > > Likewise gdb, but that is being fixed atm. Fixing dwp shouldn't be too > difficult though, I guess. > > AFAIU, both gdb and dwp in current shape wouldn't have any problems if a > single .debug_info.dwo section would be emitted by gcc. Ah yeah, that's pretty clear in DWARF, sorry about that. I will update my GDB commit message to quote that (and avoid saying that it's a gcc bug :)).