/* A reader for .debug_names. */
-struct cooked_index_debug_names : public cooked_index_worker
+struct cooked_index_worker_debug_names : public cooked_index_worker
{
- cooked_index_debug_names (dwarf2_per_objfile *per_objfile,
+ cooked_index_worker_debug_names (dwarf2_per_objfile *per_objfile,
mapped_debug_names_reader &&map)
: cooked_index_worker (per_objfile),
m_map (std::move (map))
};
void
-cooked_index_debug_names::do_reading ()
+cooked_index_worker_debug_names::do_reading ()
{
complaint_interceptor complaint_handler;
std::vector<gdb_exception> exceptions;
get searched by cooked_index. */
map.shards[0]->install_addrmap (&addrmap);
- auto cidn = (std::make_unique<cooked_index_debug_names>
+ auto cidn = (std::make_unique<cooked_index_worker_debug_names>
(per_objfile, std::move (map)));
auto idx = std::make_unique<debug_names_index> (per_objfile,
std::move (cidn));
/* A subclass of cooked_index_worker that handles scanning
.debug_info. */
-class cooked_index_debug_info : public cooked_index_worker
+class cooked_index_worker_debug_info : public cooked_index_worker
{
public:
- cooked_index_debug_info (dwarf2_per_objfile *per_objfile)
+ cooked_index_worker_debug_info (dwarf2_per_objfile *per_objfile)
: cooked_index_worker (per_objfile)
{
gdb_assert (is_main_thread ());
};
void
-cooked_index_debug_info::process_cus (size_t task_number, unit_iterator first,
+cooked_index_worker_debug_info::process_cus (size_t task_number, unit_iterator first,
unit_iterator end)
{
SCOPE_EXIT { bfd_thread_cleanup (); };
}
void
-cooked_index_debug_info::done_reading ()
+cooked_index_worker_debug_info::done_reading ()
{
/* Only handle the scanning results here. Complaints and exceptions
can only be dealt with on the main thread. */
}
void
-cooked_index_debug_info::do_reading ()
+cooked_index_worker_debug_info::do_reading ()
{
dwarf2_per_bfd *per_bfd = m_per_objfile->per_bfd;
scanning; and then start the scanning. */
dwarf2_per_bfd *per_bfd = per_objfile->per_bfd;
std::unique_ptr<cooked_index_worker> worker
- = std::make_unique<cooked_index_debug_info> (per_objfile);
+ = std::make_unique<cooked_index_worker_debug_info> (per_objfile);
per_bfd->start_reading (std::make_unique<cooked_index> (per_objfile,
std::move (worker)));
}