GDB (xrefs)
|
#include "defs.h"
#include "symtab.h"
#include "objfiles.h"
#include "psymtab.h"
#include "block.h"
#include "filenames.h"
#include "source.h"
#include "addrmap.h"
#include "gdbtypes.h"
#include "ui-out.h"
#include "command.h"
#include "readline/tilde.h"
#include "gdbsupport/gdb_regex.h"
#include "dictionary.h"
#include "language.h"
#include "cp-support.h"
#include "gdbcmd.h"
#include <algorithm>
#include <set>
#include "gdbsupport/buildargv.h"
Go to the source code of this file.
Functions | |
static struct partial_symbol * | lookup_partial_symbol (struct objfile *, struct partial_symtab *, const lookup_name_info &, int, domain_enum) |
static const char * | psymtab_to_fullname (struct partial_symtab *ps) |
static struct partial_symbol * | find_pc_sect_psymbol (struct objfile *, struct partial_symtab *, CORE_ADDR, struct obj_section *) |
static struct compunit_symtab * | psymtab_to_symtab (struct objfile *objfile, struct partial_symtab *pst) |
static struct partial_symtab * | find_pc_sect_psymtab_closer (struct objfile *objfile, CORE_ADDR pc, struct obj_section *section, struct partial_symtab *pst, struct bound_minimal_symbol msymbol) |
static bool | psymbol_name_matches (partial_symbol *psym, const lookup_name_info &lookup_name) |
static struct partial_symbol * | match_partial_symbol (struct objfile *objfile, struct partial_symtab *pst, int global, const lookup_name_info &name, domain_enum domain, symbol_compare_ftype *ordered_compare) |
static void | print_partial_symbols (struct gdbarch *gdbarch, struct objfile *objfile, const std::vector< partial_symbol * > &symbols, const char *what, struct ui_file *outfile) |
static void | dump_psymtab (struct objfile *objfile, struct partial_symtab *psymtab, struct ui_file *outfile) |
static bool | recursively_search_psymtabs (struct partial_symtab *ps, struct objfile *objfile, block_search_flags search_flags, domain_enum domain, enum search_domain search, const lookup_name_info &lookup_name, gdb::function_view< expand_symtabs_symbol_matcher_ftype > sym_matcher) |
static void | maintenance_print_psymbols (const char *args, int from_tty) |
static void | maintenance_info_psymtabs (const char *regexp, int from_tty) |
static void | maintenance_check_psymtabs (const char *ignore, int from_tty) |
void | _initialize_psymtab () |
void _initialize_psymtab | ( | ) |
Definition at line 1680 of file psymtab.c.
Referenced by initialize_all_files().
|
static |
Definition at line 685 of file psymtab.c.
References partial_symtab::anonymous, objfile::arch(), partial_symtab::dependencies, partial_symtab::filename, gdb_printf(), gdb_puts(), partial_symtab::get_compunit_symtab(), partial_symtab::global_psymbols, partial_symtab::number_of_dependencies, objfile_name(), paddress(), print_partial_symbols(), partial_symtab::readin_p(), partial_symtab::static_psymbols, partial_symtab::text_high(), partial_symtab::text_low(), and partial_symtab::user.
Referenced by maintenance_print_psymbols().
|
static |
Definition at line 218 of file psymtab.c.
References partial_symbol::address(), partial_symtab::global_psymbols, LOC_BLOCK, matching_obj_sections(), partial_symtab::static_psymbols, partial_symtab::text_low(), and VAR_DOMAIN.
Referenced by find_pc_sect_psymtab_closer().
|
static |
Definition at line 92 of file psymtab.c.
References partial_symbol::address(), find_pc_sect_psymbol(), bound_minimal_symbol::minsym, partial_symtab::next, partial_symtab::text_high(), partial_symtab::text_low(), and bound_minimal_symbol::value_address().
Referenced by psymbol_functions::find_pc_sect_psymtab().
|
static |
Definition at line 410 of file psymtab.c.
References lookup_name_info::c_str(), partial_symbol::domain, partial_symtab::global_psymbols, partial_symtab::static_psymbols, strcmp_iw_ordered(), symbol_matches_domain(), and symbol_matches_search_name().
Referenced by psymbol_functions::lookup_global_symbol_language().
|
static |
Definition at line 1579 of file psymtab.c.
References objfile::arch(), block_lookup_symbol(), compunit_symtab::blockvector(), current_program_space, block::end(), gdb_printf(), gdb_puts(), blockvector::global_block(), LOC_BLOCK, program_space::objfiles(), paddress(), psymbol_functions::partial_symbols(), objfile::qf, SEARCH_NAME, block::start(), and blockvector::static_block().
|
static |
Definition at line 1471 of file psymtab.c.
References objfile::arch(), partial_symtab::dependencies, partial_symtab::filename, gdb_printf(), gdb_puts(), gdb_stdout, objfile_name(), paddress(), psymbol_functions::partial_symbols(), program_spaces, objfile::qf, QUIT, and re_comp().
|
static |
Definition at line 1318 of file psymtab.c.
References compare_filenames_for_search(), current_program_space, dont_repeat(), dump_psymtab(), psymbol_functions::find_pc_sect_psymtab(), find_pc_section(), gdb_stdout, objfile_name(), program_space::objfiles(), stdio_file::open(), parse_and_eval_address(), psymbol_functions::partial_symbols(), ui_file::printf(), objfile::qf, and QUIT.
|
static |
Definition at line 330 of file psymtab.c.
References partial_symbol::domain, partial_symtab::global_psymbols, name, psymbol_name_matches(), partial_symtab::static_psymbols, and symbol_matches_domain().
Referenced by psymbol_functions::expand_matching_symbols().
|
static |
Definition at line 587 of file psymtab.c.
References COMMON_BLOCK_DOMAIN, gdb_printf(), gdb_puts(), LABEL_DOMAIN, LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, MODULE_DOMAIN, paddress(), QUIT, STRUCT_DOMAIN, UNDEF_DOMAIN, and VAR_DOMAIN.
Referenced by dump_psymtab().
|
static |
Definition at line 312 of file psymtab.c.
References language_defn::get_symbol_name_matcher(), partial_symbol::ginfo, general_symbol_info::language(), language_def(), and general_symbol_info::search_name().
Referenced by match_partial_symbol(), and recursively_search_psymtabs().
|
static |
Definition at line 863 of file psymtab.c.
References partial_symtab::anonymous, partial_symtab::dirname, partial_symtab::filename, find_source_or_rewrite(), and partial_symtab::fullname.
Referenced by psymbol_functions::expand_symtabs_matching(), and psymbol_functions::map_symbol_filenames().
|
static |
Definition at line 504 of file psymtab.c.
References partial_symtab::filename, gdb_flush(), gdb_printf(), gdb_stdout, partial_symtab::get_compunit_symtab(), increment_reading_symtab(), info_verbose, partial_symtab::read_symtab(), partial_symtab::readin_p(), and partial_symtab::user.
Referenced by psymbol_functions::expand_all_symtabs(), psymbol_functions::expand_matching_symbols(), psymbol_functions::expand_symtabs_matching(), psymbol_functions::find_last_source_symtab(), and psymbol_functions::find_pc_sect_compunit_symtab().
|
static |
Definition at line 906 of file psymtab.c.
References ALL_DOMAIN, partial_symtab::dependencies, FUNCTIONS_DOMAIN, partial_symtab::global_psymbols, keep_going(), LOC_BLOCK, LOC_TYPEDEF, MODULE_DOMAIN, MODULES_DOMAIN, partial_symtab::number_of_dependencies, PST_NOT_SEARCHED, PST_SEARCHED_AND_FOUND, PST_SEARCHED_AND_NOT_FOUND, psymbol_name_matches(), QUIT, recursively_search_psymtabs(), SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, partial_symtab::searched_flag, partial_symtab::static_psymbols, symbol_matches_domain(), TYPES_DOMAIN, UNDEF_DOMAIN, partial_symtab::user, and VARIABLES_DOMAIN.
Referenced by psymbol_functions::expand_symtabs_matching(), and recursively_search_psymtabs().