Bug 27453 - [meta] DWARF 5 support
Summary: [meta] DWARF 5 support
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on: 17701 23504 27930 27966 28127 24820 27336 27354 27388 31361 32808
Blocks: 33686
  Show dependency treegraph
 
Reported: 2021-02-22 02:36 UTC by Tom Tromey
Modified: 2025-12-02 14:57 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2021-02-22 02:36:08 UTC
Meta bug for DWARF 5 support.
Comment 1 Tom Tromey 2025-03-19 19:55:52 UTC
I noticed that gdb doesn't support DW_FORM_ref_sup*.
But that probably isn't really needed unless someone
is updating dwz to DWARF 5, see bug#24726.
Comment 2 Mark Wielaard 2025-03-19 20:32:17 UTC
(In reply to Tom Tromey from comment #1)
> I noticed that gdb doesn't support DW_FORM_ref_sup*.
> But that probably isn't really needed unless someone
> is updating dwz to DWARF 5, see bug#24726.

Do note that bug#27440 was resolved by:

commit 4e55da9f7700dda5936c7a486651674dbc782a7e
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sat Feb 20 10:47:53 2021 +0100

    PR27440 - add --dwarf-5 support
    
    This adds --dwarf-5 support, so that dwz can emit standard DWARF 5
    Supplementary object files with .debug_sup section and debug info referring
    to those with .debug_sup section instead of .gnu.debugaltlink and standard
    DWARF 5 DW_FORM_*sup instead of the DW_FORM_GNU_*alt forms.
Comment 3 Tom Tromey 2025-03-20 11:34:56 UTC
(In reply to Mark Wielaard from comment #2)
> (In reply to Tom Tromey from comment #1)
> > I noticed that gdb doesn't support DW_FORM_ref_sup*.
> > But that probably isn't really needed unless someone
> > is updating dwz to DWARF 5, see bug#24726.
> 
> Do note that bug#27440 was resolved by:

Hahaha I even sent a patch in 2021:
https://sourceware.org/pipermail/gdb-patches/2021-February/176508.html

I'll see about updating that.
Though there's a whole thread, so maybe there's some reason I dropped it.
Comment 4 Tom Tromey 2025-03-20 15:16:48 UTC
I filed bug#32808 to track the form thing.