[PATCH] libdw: Update DW_LANG codes
Mark Wielaard
mark@klomp.org
Mon Dec 2 18:14:29 GMT 2024
Hi,
On Fri, 2024-11-22 at 18:33 +0100, Mark Wielaard wrote:
> Pick up the language codes published after DWARF5 was published.
> The are listed at https://dwarfstd.org/languages.html
>
> Also adjust C language dectection in dwarf_getfuncs and update the
> dwarf_default_lower_bound function to return the default lower bounds
> for the new langauge codes.
>
> There is one small change in dwarf_default_lower_bound. We now return
> zero instead of an error when called for DW_LANG_Mips_Assembler. Since
> there is now an "official" DW_LANG_Assembly which is explicitly
> defined as having a default lower bound of zero. It seems better to do
> the same for the vendor code too.
>
> * libdw/dwarf.h: Add new DW_LANG codes.
> * libdw/dwarf_default_lower_bound.c (dwarf_default_lower_bound):
> Handle new language codes and add a special case for
> DW_LANG_Mips_Assembler.
> * libdw/dwarf_getfuncs.c (dwarf_getfuncs): Check against
> DW_LANG_C17 and DW_LANG_C23.
> * tests/dwarf_default_lower_bound.c: Also check for
> DW_LANG_Mips_Assembler.
On irc Aaron said this looked fine except for the "add a special case"
which should be "remove a special case".
Pushed with that change in the ChangeLog.
Cheers,
Mark
More information about the Elfutils-devel
mailing list