|| per_cu->unit_type (false) == 0
|| per_objfile->get_compunit_symtab (per_cu.get ()) == nullptr)
continue;
- if (!search_one (per_cu.get (), per_objfile, cus_to_skip, file_matcher,
- listener, lang_matcher))
+ if (!search_one (per_cu.get (), per_objfile, cus_to_skip, listener,
+ lang_matcher))
return false;
}
return true;
(dwarf2_per_cu *per_cu,
dwarf2_per_objfile *per_objfile,
auto_bool_vector &cus_to_skip,
- search_symtabs_file_matcher file_matcher,
search_symtabs_expansion_listener listener,
search_symtabs_lang_matcher lang_matcher)
{
{
QUIT;
- if (!search_one (per_cu, per_objfile, cus_to_skip, file_matcher,
- listener, lang_matcher))
+ if (!search_one (per_cu, per_objfile, cus_to_skip, listener,
+ lang_matcher))
return false;
}
return true;
bool check = entry->visit_defining_cus ([&] (dwarf2_per_cu *per_cu)
{
- return search_one (per_cu, per_objfile, cus_to_skip,
- file_matcher, listener, nullptr);
+ return search_one (per_cu, per_objfile, cus_to_skip, listener,
+ nullptr);
});
if (!check)
return false;
bool need_fullname) override;
protected:
- /* If FILE_MATCHER is NULL and if CUS_TO_SKIP does not include the CU's index,
- expand the CU and call LISTENER on it. */
+ /* If CUS_TO_SKIP does not include the CU's index and the CU's language
+ matches LANG_MATCHER, expand the CU and call LISTENER (if provided) on
+ it. */
bool search_one (dwarf2_per_cu *per_cu, dwarf2_per_objfile *per_objfile,
auto_bool_vector &cus_to_skip,
- search_symtabs_file_matcher file_matcher,
search_symtabs_expansion_listener listener,
search_symtabs_lang_matcher lang_matcher);
};