GDB (xrefs)
|
#include "symtab.h"
Public Member Functions | |
global_symbol_searcher (enum search_domain kind, const char *symbol_name_regexp) | |
void | set_symbol_type_regexp (const char *regexp) |
void | set_exclude_minsyms (bool exclude_minsyms) |
void | set_max_search_results (size_t max_search_results) |
std::vector< symbol_search > | search () const |
Public Attributes | |
std::vector< const char * > | filenames |
Private Member Functions | |
bool | expand_symtabs (objfile *objfile, const gdb::optional< compiled_regex > &preg) const |
bool | add_matching_symbols (objfile *objfile, const gdb::optional< compiled_regex > &preg, const gdb::optional< compiled_regex > &treg, std::set< symbol_search > *result_set) const |
bool | add_matching_msymbols (objfile *objfile, const gdb::optional< compiled_regex > &preg, std::vector< symbol_search > *results) const |
Static Private Member Functions | |
static bool | is_suitable_msymbol (const enum search_domain kind, const minimal_symbol *msymbol) |
Private Attributes | |
enum search_domain | m_kind |
const char * | m_symbol_name_regexp = nullptr |
const char * | m_symbol_type_regexp = nullptr |
bool | m_exclude_minsyms = false |
size_t | m_max_search_results = SIZE_MAX |
|
inline |
Definition at line 2536 of file symtab.h.
References ALL_DOMAIN, and m_kind.
|
private |
Definition at line 4814 of file symtab.c.
References find_pc_compunit_symtab(), FUNCTIONS_DOMAIN, GLOBAL_BLOCK, is_suitable_msymbol(), lookup_symbol_in_objfile_from_linkage_name(), m_kind, m_max_search_results, objfile::msymbols(), QUIT, block_symbol::symbol, and VAR_DOMAIN.
Referenced by search().
|
private |
Definition at line 4734 of file symtab.c.
References basenames_may_differ, blockvector::block(), objfile::compunits(), file_matches(), symtab::filename, filenames, FUNCTIONS_DOMAIN, GLOBAL_BLOCK, LOC_BLOCK, LOC_CONST, LOC_TYPEDEF, LOC_UNRESOLVED, m_kind, m_max_search_results, MODULE_DOMAIN, MODULES_DOMAIN, QUIT, STATIC_BLOCK, symtab_to_fullname(), treg_matches_sym_type_name(), TYPES_DOMAIN, and VARIABLES_DOMAIN.
Referenced by search().
|
private |
Definition at line 4653 of file symtab.c.
References objfile::expand_symtabs_matching(), file_matches(), filenames, find_pc_compunit_symtab(), FUNCTIONS_DOMAIN, is_suitable_msymbol(), lookup_symbol_in_objfile_from_linkage_name(), m_kind, lookup_name_info::match_any(), objfile::msymbols(), QUIT, SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, block_symbol::symbol, UNDEF_DOMAIN, VAR_DOMAIN, and VARIABLES_DOMAIN.
Referenced by search().
|
staticprivate |
Definition at line 4630 of file symtab.c.
References FUNCTIONS_DOMAIN, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, minimal_symbol::type(), and VARIABLES_DOMAIN.
Referenced by add_matching_msymbols(), and expand_symtabs().
std::vector< symbol_search > global_symbol_searcher::search | ( | ) | const |
Definition at line 4860 of file symtab.c.
References add_matching_msymbols(), add_matching_symbols(), ALL_DOMAIN, case_sensitive_off, current_program_space, expand_symtabs(), filenames, FUNCTIONS_DOMAIN, m_exclude_minsyms, m_kind, m_symbol_name_regexp, m_symbol_type_regexp, program_space::objfiles(), operator_chars(), and VARIABLES_DOMAIN.
Referenced by mi_symbol_info(), rbreak_command(), search_module_symbols(), and symtab_symbol_info().
|
inline |
Definition at line 2552 of file symtab.h.
References m_exclude_minsyms.
Referenced by mi_symbol_info(), search_module_symbols(), and symtab_symbol_info().
|
inline |
Definition at line 2558 of file symtab.h.
References m_max_search_results.
Referenced by mi_symbol_info().
|
inline |
Definition at line 2546 of file symtab.h.
References m_symbol_type_regexp.
Referenced by mi_symbol_info(), search_module_symbols(), and symtab_symbol_info().
std::vector<const char *> global_symbol_searcher::filenames |
Definition at line 2574 of file symtab.h.
Referenced by add_matching_symbols(), expand_symtabs(), rbreak_command(), and search().
|
private |
Definition at line 2594 of file symtab.h.
Referenced by search(), and set_exclude_minsyms().
|
private |
Definition at line 2584 of file symtab.h.
Referenced by add_matching_msymbols(), add_matching_symbols(), expand_symtabs(), global_symbol_searcher(), and search().
|
private |
Definition at line 2598 of file symtab.h.
Referenced by add_matching_msymbols(), add_matching_symbols(), and set_max_search_results().
|
private |
|
private |
Definition at line 2590 of file symtab.h.
Referenced by search(), and set_symbol_type_regexp().