/* Was a GDB index already read when we processed an objfile sharing
PER_BFD? */
else if (per_bfd->index_table != nullptr)
- dwarf_read_debug_printf ("re-using symbols");
+ dwarf_read_debug_printf ("reusing symbols");
else if (dwarf2_read_debug_names (per_objfile))
dwarf_read_debug_printf ("found debug names");
else if (dwarf2_read_gdb_index (per_objfile,
struct dwo_file *dwo_file,
const struct abbrev_table *abbrev_table)
{
- gdb_assert (section->readin && section->buffer != NULL);
+ gdb_assert (section->read_in && section->buffer != NULL);
m_abfd = section->get_bfd_owner ();
m_cu = cu;
m_dwo_file = dwo_file;
result.virtual_offset = offset;
result.size = size;
- gdb_assert (section->readin);
- result.readin = true;
+ gdb_assert (section->read_in);
+ result.read_in = true;
result.buffer = section->buffer + offset;
return result;
}
{
/* Make sure we don't overwrite a section info that has been filled in
already. */
- gdb_assert (!dw_sect->readin);
+ gdb_assert (!dw_sect->read_in);
dw_sect->s.section = sec;
dw_sect->size = bfd_section_size (sec);
{
/* Make sure we don't overwrite a section info that has been filled in
already. */
- gdb_assert (!dw_sect->readin);
+ gdb_assert (!dw_sect->read_in);
dw_sect->s.section = sectp;
dw_sect->size = bfd_section_size (sectp);
{
/* Make sure we don't overwrite a section info that has been filled in
already. */
- gdb_assert (!dw_sect->readin);
+ gdb_assert (!dw_sect->read_in);
dw_sect->s.section = sectp;
dw_sect->size = bfd_section_size (sectp);
{
/* Make sure we don't overwrite a section info that has been filled in
already. */
- gdb_assert (!dw_sect->readin);
+ gdb_assert (!dw_sect->read_in);
dw_sect->s.section = sectp;
dw_sect->size = bfd_section_size (sectp);
attribute *attr = dwarf2_attr (die, DW_AT_endianity, cu);
if (attr != nullptr && attr->form_is_constant ())
{
- std::optional<ULONGEST> endianity = attr->unsigned_constant ();
+ std::optional<ULONGEST> endianness = attr->unsigned_constant ();
- if (endianity.has_value ())
+ if (endianness.has_value ())
{
- switch (*endianity)
+ switch (*endianness)
{
case DW_END_default:
/* Nothing. */
break;
default:
complaint (_("DW_AT_endianity has unrecognized value %s"),
- pulongest (*endianity));
+ pulongest (*endianness));
break;
}
}
/* A descriptor for dwarf sections.
S.ASECTION, SIZE are typically initialized when the objfile is first
- scanned. BUFFER, READIN are filled in later when the section is read.
+ scanned. BUFFER, READ_IN are filled in later when the section is read.
If the section contained compressed data then SIZE is updated to record
the uncompressed size of the section.
section. */
struct dwarf2_section_info *containing_section;
} s;
- /* Pointer to section data, only valid if readin. */
+ /* Pointer to section data, only valid if read_in. */
const gdb_byte *buffer;
/* The size of the section, real or virtual. */
bfd_size_type size;
Only valid if is_virtual. */
bfd_size_type virtual_offset;
/* True if we have tried to read this section. */
- bool readin;
+ bool read_in;
/* True if this is a virtual section, False otherwise.
This specifies which of s.section and s.containing_section to use. */
bool is_virtual;