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

#include "psymtab.h"

Inheritance diagram for psymbol_functions:
quick_symbol_functions

Public Member Functions

 psymbol_functions (const std::shared_ptr< psymtab_storage > &storage)
 
 psymbol_functions ()
 
bool has_symbols (struct objfile *objfile) override
 
bool has_unexpanded_symtabs (struct objfile *objfile) override
 
struct symtabfind_last_source_symtab (struct objfile *objfile) override
 
void forget_cached_source_info (struct objfile *objfile) override
 
enum language lookup_global_symbol_language (struct objfile *objfile, const char *name, domain_enum domain, bool *symbol_found_p) override
 
void print_stats (struct objfile *objfile, bool print_bcache) override
 
void dump (struct objfile *objfile) override
 
void expand_all_symtabs (struct objfile *objfile) override
 
void expand_matching_symbols (struct objfile *, const lookup_name_info &lookup_name, domain_enum domain, int global, symbol_compare_ftype *ordered_compare) override
 
bool expand_symtabs_matching (struct objfile *objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, const lookup_name_info *lookup_name, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify, block_search_flags search_flags, domain_enum domain, enum search_domain kind) override
 
struct compunit_symtabfind_pc_sect_compunit_symtab (struct objfile *objfile, struct bound_minimal_symbol msymbol, CORE_ADDR pc, struct obj_section *section, int warn_if_readin) override
 
struct compunit_symtabfind_compunit_symtab_by_address (struct objfile *objfile, CORE_ADDR address) override
 
void map_symbol_filenames (struct objfile *objfile, gdb::function_view< symbol_filename_ftype > fun, bool need_fullname) override
 
psymtab_storage::partial_symtab_range partial_symbols (struct objfile *objfile)
 
const std::shared_ptr< psymtab_storage > & get_partial_symtabs () const
 
void set_partial_symtabs (const std::shared_ptr< psymtab_storage > &syms)
 
struct partial_symtabfind_pc_sect_psymtab (struct objfile *objfile, CORE_ADDR pc, struct obj_section *section, struct bound_minimal_symbol msymbol)
 
- Public Member Functions inherited from quick_symbol_functions
virtual ~quick_symbol_functions ()
 
virtual bool can_lazily_read_symbols ()
 
virtual void read_partial_symbols (struct objfile *objfile)
 

Private Member Functions

int count_psyms ()
 

Private Attributes

std::shared_ptr< psymtab_storagem_partial_symtabs
 

Detailed Description

Definition at line 598 of file psymtab.h.

Constructor & Destructor Documentation

◆ psymbol_functions() [1/2]

psymbol_functions::psymbol_functions ( const std::shared_ptr< psymtab_storage > & storage)
inlineexplicit

Definition at line 600 of file psymtab.h.

◆ psymbol_functions() [2/2]

psymbol_functions::psymbol_functions ( )
inline

Definition at line 605 of file psymtab.h.

Member Function Documentation

◆ count_psyms()

int psymbol_functions::count_psyms ( )
private

Definition at line 744 of file psymtab.c.

References m_partial_symtabs.

Referenced by print_stats().

◆ dump()

void psymbol_functions::dump ( struct objfile * objfile)
overridevirtual

◆ expand_all_symtabs()

void psymbol_functions::expand_all_symtabs ( struct objfile * objfile)
overridevirtual

Implements quick_symbol_functions.

Definition at line 814 of file psymtab.c.

References partial_symbols(), and psymtab_to_symtab().

◆ expand_matching_symbols()

void psymbol_functions::expand_matching_symbols ( struct objfile * objfile,
const lookup_name_info & lookup_name,
domain_enum domain,
int global,
symbol_compare_ftype * ordered_compare )
overridevirtual

Implements quick_symbol_functions.

Definition at line 884 of file psymtab.c.

References match_partial_symbol(), name, partial_symbols(), psymtab_to_symtab(), and QUIT.

◆ expand_symtabs_matching()

bool psymbol_functions::expand_symtabs_matching ( struct objfile * objfile,
gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher,
const lookup_name_info * lookup_name,
gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher,
gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify,
block_search_flags search_flags,
domain_enum domain,
enum search_domain kind )
overridevirtual

◆ find_compunit_symtab_by_address()

struct compunit_symtab * psymbol_functions::find_compunit_symtab_by_address ( struct objfile * objfile,
CORE_ADDR address )
inlineoverridevirtual

Implements quick_symbol_functions.

Definition at line 650 of file psymtab.h.

◆ find_last_source_symtab()

struct symtab * psymbol_functions::find_last_source_symtab ( struct objfile * objfile)
overridevirtual

◆ find_pc_sect_compunit_symtab()

struct compunit_symtab * psymbol_functions::find_pc_sect_compunit_symtab ( struct objfile * objfile,
struct bound_minimal_symbol msymbol,
CORE_ADDR pc,
struct obj_section * section,
int warn_if_readin )
overridevirtual

◆ find_pc_sect_psymtab()

struct partial_symtab * psymbol_functions::find_pc_sect_psymtab ( struct objfile * objfile,
CORE_ADDR pc,
struct obj_section * section,
struct bound_minimal_symbol msymbol )

◆ forget_cached_source_info()

void psymbol_functions::forget_cached_source_info ( struct objfile * objfile)
overridevirtual

Implements quick_symbol_functions.

Definition at line 574 of file psymtab.c.

References partial_symbols(), and xfree().

◆ get_partial_symtabs()

const std::shared_ptr< psymtab_storage > & psymbol_functions::get_partial_symtabs ( ) const
inline

Definition at line 666 of file psymtab.h.

References m_partial_symtabs.

Referenced by dbx_symfile_read(), mdebug_build_psymtabs(), and xcoff_initial_scan().

◆ has_symbols()

bool psymbol_functions::has_symbols ( struct objfile * objfile)
overridevirtual

Implements quick_symbol_functions.

Definition at line 1083 of file psymtab.c.

References m_partial_symtabs.

◆ has_unexpanded_symtabs()

bool psymbol_functions::has_unexpanded_symtabs ( struct objfile * objfile)
overridevirtual

Implements quick_symbol_functions.

Definition at line 1091 of file psymtab.c.

References partial_symbols().

◆ lookup_global_symbol_language()

enum language psymbol_functions::lookup_global_symbol_language ( struct objfile * objfile,
const char * name,
domain_enum domain,
bool * symbol_found_p )
overridevirtual

◆ map_symbol_filenames()

void psymbol_functions::map_symbol_filenames ( struct objfile * objfile,
gdb::function_view< symbol_filename_ftype > fun,
bool need_fullname )
overridevirtual

Implements quick_symbol_functions.

Definition at line 824 of file psymtab.c.

References partial_symbols(), psymtab_to_fullname(), and QUIT.

◆ partial_symbols()

psymtab_storage::partial_symtab_range psymbol_functions::partial_symbols ( struct objfile * objfile)

◆ print_stats()

void psymbol_functions::print_stats ( struct objfile * objfile,
bool print_bcache )
overridevirtual

Implements quick_symbol_functions.

Definition at line 759 of file psymtab.c.

References count_psyms(), gdb_printf(), m_partial_symtabs, and partial_symbols().

◆ set_partial_symtabs()

void psymbol_functions::set_partial_symtabs ( const std::shared_ptr< psymtab_storage > & syms)
inline

Definition at line 673 of file psymtab.h.

References m_partial_symtabs.

Member Data Documentation

◆ m_partial_symtabs

std::shared_ptr<psymtab_storage> psymbol_functions::m_partial_symtabs
private

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