tccdbg.c: DW_AT_language now matches the -std option
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
This commit is contained in:
parent
3d963aebcd
commit
12acbf3e92
1 changed files with 1 additions and 1 deletions
2
tccdbg.c
2
tccdbg.c
|
@ -802,7 +802,7 @@ ST_FUNC void tcc_debug_start(TCCState *s1)
|
||||||
|
|
||||||
dwarf_data1(dwarf_info_section, DWARF_ABBREV_COMPILE_UNIT);
|
dwarf_data1(dwarf_info_section, DWARF_ABBREV_COMPILE_UNIT);
|
||||||
dwarf_strp(dwarf_info_section, "tcc " TCC_VERSION);
|
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, filename);
|
||||||
dwarf_line_strp(dwarf_info_section, buf);
|
dwarf_line_strp(dwarf_info_section, buf);
|
||||||
dwarf_reloc(dwarf_info_section, section_sym, R_DATA_PTR);
|
dwarf_reloc(dwarf_info_section, section_sym, R_DATA_PTR);
|
||||||
|
|
Loading…
Reference in a new issue