tccdbg.c: DW_AT_language now matches the -std option

Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
This commit is contained in:
Maxim Logaev 2024-08-20 17:51:12 +03:00
parent 3d963aebcd
commit 12acbf3e92

View File

@ -802,7 +802,7 @@ ST_FUNC void tcc_debug_start(TCCState *s1)
dwarf_data1(dwarf_info_section, DWARF_ABBREV_COMPILE_UNIT);
dwarf_strp(dwarf_info_section, "tcc " TCC_VERSION);
dwarf_data1(dwarf_info_section, DW_LANG_C11);
dwarf_data1(dwarf_info_section, s1->cversion == 201112 ? DW_LANG_C11 : DW_LANG_C99);
dwarf_line_strp(dwarf_info_section, filename);
dwarf_line_strp(dwarf_info_section, buf);
dwarf_reloc(dwarf_info_section, section_sym, R_DATA_PTR);