From: Simon Marchi Date: Fri, 14 Mar 2025 04:32:50 +0000 (-0400) Subject: gdb/dwarf: remove some _1 suffixes X-Git-Tag: binutils-2_45~1179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4509b5a909104b2aff2230fb26bf245267afc0a6;p=thirdparty%2Fbinutils-gdb.git gdb/dwarf: remove some _1 suffixes These methods don't have (or no longer have) a counterpart without the _1 suffix, so remove the suffix. Change-Id: Ifdfe4fb3b6b09c6bb9e30c27acf9f9ecbcb207f2 Approved-By: Tom Tromey --- diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 46114f06aee..0f2e367b426 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -14525,7 +14525,7 @@ read_unspecified_type (struct die_info *die, struct dwarf2_cu *cu) die_info * cutu_reader::read_die_and_children (die_info *parent) { - die_info *die = this->read_full_die_1 (0, true); + die_info *die = this->read_full_die (0, true); if (die == nullptr) return nullptr; @@ -14534,7 +14534,7 @@ cutu_reader::read_die_and_children (die_info *parent) gdb_assert (inserted); if (die->has_children) - die->child = this->read_die_and_siblings_1 (die); + die->child = this->read_die_and_siblings (die); else die->child = nullptr; @@ -14548,7 +14548,7 @@ cutu_reader::read_die_and_children (die_info *parent) in read_die_and_children. */ die_info * -cutu_reader::read_die_and_siblings_1 (die_info *parent) +cutu_reader::read_die_and_siblings (die_info *parent) { die_info *first_die = nullptr; die_info *last_sibling = nullptr; @@ -14580,7 +14580,7 @@ cutu_reader::read_all_dies () { gdb_assert (m_cu->die_hash.empty ()); m_cu->die_hash.reserve (m_cu->header.get_length_without_initial () / 12); - m_top_level_die->child = this->read_die_and_siblings_1 (m_top_level_die); + m_top_level_die->child = this->read_die_and_siblings (m_top_level_die); } m_cu->dies = m_top_level_die; @@ -14605,7 +14605,7 @@ cutu_reader::read_all_dies () child, sibling, and parent fields. */ die_info * -cutu_reader::read_full_die_1 (int num_extra_attrs, bool allow_reprocess) +cutu_reader::read_full_die (int num_extra_attrs, bool allow_reprocess) { unsigned int bytes_read, i; const struct abbrev_info *abbrev; @@ -14652,7 +14652,7 @@ die_info * cutu_reader::read_toplevel_die (gdb::array_view extra_attrs) { const gdb_byte *begin_info_ptr = m_info_ptr; - die_info *die = this->read_full_die_1 (extra_attrs.size (), false); + die_info *die = this->read_full_die (extra_attrs.size (), false); /* Copy in the extra attributes, if any. */ attribute *next = &die->attrs[die->num_attrs]; diff --git a/gdb/dwarf2/read.h b/gdb/dwarf2/read.h index 2c88c0c9788..ced81540584 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -995,11 +995,11 @@ private: die_info *read_toplevel_die (gdb::array_view extra_attrs = {}); - die_info *read_die_and_siblings_1 (die_info *parent); + die_info *read_die_and_siblings (die_info *parent); die_info *read_die_and_children (die_info *parent); - die_info *read_full_die_1 (int num_extra_attrs, bool allow_reprocess); + die_info *read_full_die (int num_extra_attrs, bool allow_reprocess); const gdb_byte *read_attribute_value (attribute *attr, unsigned form, LONGEST implicit_const,