The new .debug_names reader will reuse the background reading
infrastructure of the cooked index code. In order to share the
handling of 'maint set dwarf synchronous' -- and to avoid having to
export this global -- this patch refactors this to be handled directly
in dwarf2_initialize_objfile.
global_index_cache.miss ();
objfile->qf.push_front (make_cooked_index_funcs (per_objfile));
}
+
+ if (dwarf_synchronous && per_bfd->index_table != nullptr)
+ per_bfd->index_table->wait_completely ();
+
return true;
}
avoids races. */
idx->start_reading ();
- if (dwarf_synchronous)
- idx->wait_completely ();
-
return quick_symbol_functions_up (new cooked_index_functions);
}