I noticed a few more style issues in commit
8b9c08eddac ("[gdb/symtab] Add
name_of_main and language_of_main to the DWARF index"), after checking it
with gcc's check_GNU_style.{sh,py}.
Fix these.
Build on x86_64-linux.
*** Changes since GDB 14
-* GDB index now contains information about the main function. This speeds up
+* GDB index now contains information about the main function. This speeds up
startup when it is being used for some large binaries.
* Python API
}
}
-/* Write shortcut information. */
+/* Write shortcut information. */
static void
write_shortcuts_table (cooked_index *table, data_buf &shortcuts,
/* A pointer to the constant pool. */
gdb::array_view<const gdb_byte> constant_pool;
- /* The shortcut table data. */
+ /* The shortcut table data. */
gdb::array_view<const gdb_byte> shortcut_table;
/* Return the index into the constant pool of the name of the IDXth
= new (&per_bfd->obstack) addrmap_fixed (&per_bfd->obstack, &mutable_map);
}
-/* Sets the name and language of the main function from the shortcut table. */
+/* Sets the name and language of the main function from the shortcut table. */
static void
set_main_name_from_gdb_index (dwarf2_per_objfile *per_objfile,
const auto expected_size = 2 * sizeof (offset_type);
if (index->shortcut_table.size () < expected_size)
/* The data in the section is not present, is corrupted or is in a version
- we don't know about. Regardless, we can't make use of it. */
+ we don't know about. Regardless, we can't make use of it. */
return;
auto ptr = index->shortcut_table.data ();
if (dw_lang == 0)
{
/* Don't bother if the language for the main symbol was not known or if
- there was no main symbol at all when the index was built. */
+ there was no main symbol at all when the index was built. */
return;
}
ptr += 4;
}
}
-/* Converts DWARF language names to GDB language names. */
+/* Converts DWARF language names to GDB language names. */
enum language
dwarf_lang_to_enum_language (unsigned int lang)
std::atomic<packed<language, LANGUAGE_BYTES>> m_lang {language_unknown};
/* The original DW_LANG_* value of the CU, as provided to us by
- DW_AT_language. It is interesting to keep this value around in cases where
+ DW_AT_language. It is interesting to keep this value around in cases where
we can't use the values from the language enum, as the mapping to them is
lossy, and, while that is usually fine, things like the index have an
understandable bias towards not exposing internal GDB structures to the
std::unique_ptr<dwarf2_cu>> m_dwarf2_cus;
};
-/* Converts DWARF language names to GDB language names. */
+/* Converts DWARF language names to GDB language names. */
enum language dwarf_lang_to_enum_language (unsigned int lang);