[PATCH] binutils/dwarf: Print embedded source, when available

Tom Tromey tom@tromey.com
Thu Apr 16 15:32:07 GMT 2026


>>>>> Will Hawkins <hawkinsw@obs.cr> writes:

> The DW_LNCT_LLVM_source line number header entry format is slated to
> be added to DWARFv6: https://dwarfstd.org/issues/180201.1.html and
> lldb supports it (and gdb will soon support it).

>  include/dwarf2.h |  1 +

FWIW changes to this file have to be propagated to the gcc repo.  There
isn't a problem here but it might be easier if this were a separate
commit.

> diff --git a/include/dwarf2.h b/include/dwarf2.h
> index bf9287f1..ee546a40 100644
> --- a/include/dwarf2.h
> +++ b/include/dwarf2.h
> @@ -294,6 +294,7 @@ enum dwarf_line_number_content_type
>      DW_LNCT_size = 0x4,
>      DW_LNCT_MD5 = 0x5,
>      DW_LNCT_lo_user = 0x2000,
> +    DW_LNCT_LLVM_source = 0x2001,
>      DW_LNCT_hi_user = 0x3fff
>    };
 
Tom


More information about the Binutils mailing list