diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2025-03-14 00:32:50 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2025-03-14 12:23:40 -0400 |
commit | 4509b5a909104b2aff2230fb26bf245267afc0a6 (patch) | |
tree | f9660f32527df2fba10d02da4a9f2fd41249a5d3 | |
parent | 8c6d5bcf9b83b2d8347238c456a9fef8fdd6bab8 (diff) | |
download | binutils-4509b5a909104b2aff2230fb26bf245267afc0a6.zip binutils-4509b5a909104b2aff2230fb26bf245267afc0a6.tar.gz binutils-4509b5a909104b2aff2230fb26bf245267afc0a6.tar.bz2 |
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 <tom@tromey.com>
-rw-r--r-- | gdb/dwarf2/read.c | 12 | ||||
-rw-r--r-- | gdb/dwarf2/read.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 46114f0..0f2e367 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<attribute *> 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 2c88c0c..ced8154 100644 --- a/gdb/dwarf2/read.h +++ b/gdb/dwarf2/read.h @@ -995,11 +995,11 @@ private: die_info *read_toplevel_die (gdb::array_view<attribute *> 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, |