GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
global_symbol_searcher Class Reference

#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_searchsearch () 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
 

Detailed Description

Definition at line 2531 of file symtab.h.

Constructor & Destructor Documentation

◆ global_symbol_searcher()

global_symbol_searcher::global_symbol_searcher ( enum search_domain kind,
const char * symbol_name_regexp )
inline

Definition at line 2536 of file symtab.h.

References ALL_DOMAIN, and m_kind.

Member Function Documentation

◆ add_matching_msymbols()

bool global_symbol_searcher::add_matching_msymbols ( objfile * objfile,
const gdb::optional< compiled_regex > & preg,
std::vector< symbol_search > * results ) const
private

◆ add_matching_symbols()

bool global_symbol_searcher::add_matching_symbols ( objfile * objfile,
const gdb::optional< compiled_regex > & preg,
const gdb::optional< compiled_regex > & treg,
std::set< symbol_search > * result_set ) const
private

◆ expand_symtabs()

bool global_symbol_searcher::expand_symtabs ( objfile * objfile,
const gdb::optional< compiled_regex > & preg ) const
private

◆ is_suitable_msymbol()

bool global_symbol_searcher::is_suitable_msymbol ( const enum search_domain kind,
const minimal_symbol * msymbol )
staticprivate

◆ search()

std::vector< symbol_search > global_symbol_searcher::search ( ) const

◆ set_exclude_minsyms()

void global_symbol_searcher::set_exclude_minsyms ( bool exclude_minsyms)
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().

◆ set_max_search_results()

void global_symbol_searcher::set_max_search_results ( size_t max_search_results)
inline

Definition at line 2558 of file symtab.h.

References m_max_search_results.

Referenced by mi_symbol_info().

◆ set_symbol_type_regexp()

void global_symbol_searcher::set_symbol_type_regexp ( const char * regexp)
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().

Member Data Documentation

◆ filenames

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().

◆ m_exclude_minsyms

bool global_symbol_searcher::m_exclude_minsyms = false
private

Definition at line 2594 of file symtab.h.

Referenced by search(), and set_exclude_minsyms().

◆ m_kind

enum search_domain global_symbol_searcher::m_kind
private

◆ m_max_search_results

size_t global_symbol_searcher::m_max_search_results = SIZE_MAX
private

Definition at line 2598 of file symtab.h.

Referenced by add_matching_msymbols(), add_matching_symbols(), and set_max_search_results().

◆ m_symbol_name_regexp

const char* global_symbol_searcher::m_symbol_name_regexp = nullptr
private

Definition at line 2587 of file symtab.h.

Referenced by search().

◆ m_symbol_type_regexp

const char* global_symbol_searcher::m_symbol_type_regexp = nullptr
private

Definition at line 2590 of file symtab.h.

Referenced by search(), and set_symbol_type_regexp().


The documentation for this class was generated from the following files: