aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2/cooked-index.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-01-31 13:27:21 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2023-01-31 22:03:40 -0500
commit19455ee11dee11bd4ad1d05aac6f86114ec37848 (patch)
tree3e1a381d5e98f89c88debe87d2c920d13716929d /gdb/dwarf2/cooked-index.c
parenta8dc67183978d0b0369ec7e45b19ccd613a2321d (diff)
downloadgdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.zip
gdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.tar.gz
gdb-19455ee11dee11bd4ad1d05aac6f86114ec37848.tar.bz2
gdb/dwarf: rename cooked_index_vector to cooked_index
See previous patch's commit message for rationale. Change-Id: I6b8cdc045dffccc1c01ed690ff258af09f6ff076 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/dwarf2/cooked-index.c')
-rw-r--r--gdb/dwarf2/cooked-index.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/dwarf2/cooked-index.c b/gdb/dwarf2/cooked-index.c
index 61f825b..f253a42 100644
--- a/gdb/dwarf2/cooked-index.c
+++ b/gdb/dwarf2/cooked-index.c
@@ -404,7 +404,7 @@ cooked_index_shard::find (const std::string &name, bool completing) const
return range (lower, upper);
}
-cooked_index_vector::cooked_index_vector (vec_type &&vec)
+cooked_index::cooked_index (vec_type &&vec)
: m_vector (std::move (vec))
{
for (auto &idx : m_vector)
@@ -414,7 +414,7 @@ cooked_index_vector::cooked_index_vector (vec_type &&vec)
/* See cooked-index.h. */
dwarf2_per_cu_data *
-cooked_index_vector::lookup (CORE_ADDR addr)
+cooked_index::lookup (CORE_ADDR addr)
{
for (const auto &index : m_vector)
{
@@ -428,7 +428,7 @@ cooked_index_vector::lookup (CORE_ADDR addr)
/* See cooked-index.h. */
std::vector<const addrmap *>
-cooked_index_vector::get_addrmaps () const
+cooked_index::get_addrmaps () const
{
std::vector<const addrmap *> result;
for (const auto &index : m_vector)
@@ -438,8 +438,8 @@ cooked_index_vector::get_addrmaps () const
/* See cooked-index.h. */
-cooked_index_vector::range
-cooked_index_vector::find (const std::string &name, bool completing) const
+cooked_index::range
+cooked_index::find (const std::string &name, bool completing) const
{
std::vector<cooked_index_shard::range> result_range;
result_range.reserve (m_vector.size ());
@@ -451,7 +451,7 @@ cooked_index_vector::find (const std::string &name, bool completing) const
/* See cooked-index.h. */
const cooked_index_entry *
-cooked_index_vector::get_main () const
+cooked_index::get_main () const
{
const cooked_index_entry *result = nullptr;
@@ -471,7 +471,7 @@ cooked_index_vector::get_main () const
/* See cooked-index.h. */
void
-cooked_index_vector::dump (gdbarch *arch) const
+cooked_index::dump (gdbarch *arch) const
{
/* Ensure the index is done building. */
this->wait ();