[gdb/symtab] Fix style issues in v9 .gdb_index section support

Post-commit review pointed out a few style issues in commit 8b9c08edda
("[gdb/symtab] Add name_of_main and language_of_main to the DWARF index").

Fix these.

Tested on x86_64-linux.

Reported-By: Tom Tromey <tom@tromey.com>
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Tom de Vries
2023-10-18 07:45:39 +02:00
parent 4352c0ac04
commit 729d066794
4 changed files with 15 additions and 15 deletions

View File

@@ -21750,7 +21750,7 @@ prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die,
/* Set the language we're debugging. */
attr = dwarf2_attr (comp_unit_die, DW_AT_language, cu);
enum language lang;
dwarf_source_language dw_lang = (dwarf_source_language)0;
dwarf_source_language dw_lang = (dwarf_source_language) 0;
if (cu->producer != nullptr
&& strstr (cu->producer, "IBM XL C for OpenCL") != NULL)
{
@@ -21771,7 +21771,7 @@ prepare_one_comp_unit (struct dwarf2_cu *cu, struct die_info *comp_unit_die,
else if (attr != nullptr)
{
lang = dwarf_lang_to_enum_language (attr->constant_value (0));
dw_lang = (dwarf_source_language)attr->constant_value (0);
dw_lang = (dwarf_source_language) attr->constant_value (0);
}
else
lang = pretend_language;