Re: [PATCH 3/4] libdw: Make dwarf_srclang forward compatible with DW_AT_language_name

2025-03-26 Thread Aaron Merey
Hi Mark, On Tue, Mar 11, 2025 at 6:00 AM Mark Wielaard wrote: > > For programs which use dwarf_srclang it might be useful to translate a > DW_LNAME (plus version) into a DW_LANG constant if there is no > DW_AT_language constant, but there is a DW_AT_language_name (and > DW_AT_language_version). >

[PATCH 3/4] libdw: Make dwarf_srclang forward compatible with DW_AT_language_name

2025-03-11 Thread Mark Wielaard
For programs which use dwarf_srclang it might be useful to translate a DW_LNAME (plus version) into a DW_LANG constant if there is no DW_AT_language constant, but there is a DW_AT_language_name (and DW_AT_language_version). * libdw/dwarf_srclang.c (language_to_srclang): New function.