GDB (xrefs)
|
#include "defs.h"
#include "dwarf2/call-site.h"
#include "symtab.h"
#include "gdbtypes.h"
#include "gdbcore.h"
#include "frame.h"
#include "target.h"
#include "value.h"
#include "symfile.h"
#include "objfiles.h"
#include "gdbcmd.h"
#include "gdbsupport/gdb_regex.h"
#include "expression.h"
#include "language.h"
#include "demangle.h"
#include "inferior.h"
#include "source.h"
#include "filenames.h"
#include "objc-lang.h"
#include "d-lang.h"
#include "ada-lang.h"
#include "go-lang.h"
#include "p-lang.h"
#include "addrmap.h"
#include "cli/cli-utils.h"
#include "cli/cli-style.h"
#include "cli/cli-cmds.h"
#include "fnmatch.h"
#include "hashtab.h"
#include "typeprint.h"
#include "gdbsupport/gdb_obstack.h"
#include "block.h"
#include "dictionary.h"
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <ctype.h>
#include "cp-abi.h"
#include "cp-support.h"
#include "observable.h"
#include "solist.h"
#include "macrotab.h"
#include "macroscope.h"
#include "parser-defs.h"
#include "completer.h"
#include "progspace-and-thread.h"
#include "gdbsupport/gdb_optional.h"
#include "filename-seen-cache.h"
#include "arch-utils.h"
#include <algorithm>
#include "gdbsupport/gdb_string_view.h"
#include "gdbsupport/pathstuff.h"
#include "gdbsupport/common-utils.h"
Go to the source code of this file.
Classes | |
struct | main_info |
struct | symbol_cache_slot |
struct | block_symbol_cache |
struct | symbol_cache |
struct | demangled_name_entry |
struct | output_source_filename_data |
struct | filename_partial_match_opts |
struct | info_vars_funcs_options |
struct | info_types_options |
struct | add_partial_filename_data |
struct | info_modules_var_func_options |
Macros | |
#define | DEFAULT_SYMBOL_CACHE_SIZE 1021 |
#define | MAX_SYMBOL_CACHE_SIZE (1024*1024) |
#define | SYMBOL_LOOKUP_FAILED ((struct block_symbol) {(struct symbol *) 1, NULL}) |
#define | SYMBOL_LOOKUP_FAILED_P(SIB) (SIB.symbol == (struct symbol *) 1) |
#define | MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 11) |
Typedefs | |
using | isrc_flag_option_def = gdb::option::flag_option_def<filename_partial_match_opts> |
Enumerations | |
enum | symbol_cache_slot_state { SYMBOL_SLOT_UNUSED , SYMBOL_SLOT_NOT_FOUND , SYMBOL_SLOT_FOUND } |
Functions | |
static void | rbreak_command (const char *, int) |
static int | find_line_common (const linetable *, int, int *, int) |
static struct block_symbol | lookup_symbol_aux (const char *name, symbol_name_match_type match_type, const struct block *block, const domain_enum domain, enum language language, struct field_of_this_result *) |
static struct block_symbol | lookup_local_symbol (const char *name, symbol_name_match_type match_type, const struct block *block, const domain_enum domain, enum language language) |
static struct block_symbol | lookup_symbol_in_objfile (struct objfile *objfile, enum block_enum block_index, const char *name, const domain_enum domain) |
static void | set_main_name (program_space *pspace, const char *name, language lang) |
static void | symbol_cache_clear_slot (struct symbol_cache_slot *slot) |
static void | destroy_block_symbol_cache (struct block_symbol_cache *bsc) |
const char * | multiple_symbols_select_mode (void) |
const char * | domain_name (domain_enum e) |
const char * | search_domain_name (enum search_domain e) |
bool | compare_filenames_for_search (const char *filename, const char *search_name) |
bool | compare_glob_filenames_for_search (const char *filename, const char *search_name) |
bool | iterate_over_some_symtabs (const char *name, const char *real_path, struct compunit_symtab *first, struct compunit_symtab *after_last, gdb::function_view< bool(symtab *)> callback) |
void | iterate_over_symtabs (const char *name, gdb::function_view< bool(symtab *)> callback) |
struct symtab * | lookup_symtab (const char *name) |
char * | gdb_mangle_name (struct type *type, int method_id, int signature_id) |
static hashval_t | hash_demangled_name_entry (const void *data) |
static int | eq_demangled_name_entry (const void *a, const void *b) |
static void | free_demangled_name_entry (void *data) |
static void | create_demangled_names_hash (struct objfile_per_bfd_storage *per_bfd) |
gdb::unique_xmalloc_ptr< char > | symbol_find_demangled_name (struct general_symbol_info *gsymbol, const char *mangled) |
bool | symbol_matches_search_name (const struct general_symbol_info *gsymbol, const lookup_name_info &name) |
bool | matching_obj_sections (struct obj_section *obj_first, struct obj_section *obj_second) |
static unsigned int | hash_symbol_entry (const struct objfile *objfile_context, const char *name, domain_enum domain) |
static int | eq_symbol_entry (const struct symbol_cache_slot *slot, const struct objfile *objfile_context, const char *name, domain_enum domain) |
static size_t | symbol_cache_byte_size (unsigned int size) |
static void | resize_symbol_cache (struct symbol_cache *cache, unsigned int new_size) |
static struct symbol_cache * | get_symbol_cache (struct program_space *pspace) |
static void | set_symbol_cache_size (unsigned int new_size) |
static void | set_symbol_cache_size_handler (const char *args, int from_tty, struct cmd_list_element *c) |
static struct block_symbol | symbol_cache_lookup (struct symbol_cache *cache, struct objfile *objfile_context, enum block_enum block, const char *name, domain_enum domain, struct block_symbol_cache **bsc_ptr, struct symbol_cache_slot **slot_ptr) |
static void | symbol_cache_mark_found (struct block_symbol_cache *bsc, struct symbol_cache_slot *slot, struct objfile *objfile_context, struct symbol *symbol, const struct block *block) |
static void | symbol_cache_mark_not_found (struct block_symbol_cache *bsc, struct symbol_cache_slot *slot, struct objfile *objfile_context, const char *name, domain_enum domain) |
static void | symbol_cache_flush (struct program_space *pspace) |
static void | symbol_cache_dump (const struct symbol_cache *cache) |
static void | maintenance_print_symbol_cache (const char *args, int from_tty) |
static void | maintenance_flush_symbol_cache (const char *args, int from_tty) |
static void | symbol_cache_stats (struct symbol_cache *cache) |
static void | maintenance_print_symbol_cache_statistics (const char *args, int from_tty) |
static void | symtab_new_objfile_observer (struct objfile *objfile) |
static void | symtab_all_objfiles_removed (program_space *pspace) |
static void | symtab_free_objfile_observer (struct objfile *objfile) |
void | fixup_symbol_section (struct symbol *sym, struct objfile *objfile) |
const char * | demangle_for_lookup (const char *name, enum language lang, demangle_result_storage &storage) |
unsigned int | search_name_hash (enum language language, const char *search_name) |
struct block_symbol | lookup_symbol_in_language (const char *name, const struct block *block, const domain_enum domain, enum language lang, struct field_of_this_result *is_a_field_of_this) |
struct block_symbol | lookup_symbol (const char *name, const struct block *block, domain_enum domain, struct field_of_this_result *is_a_field_of_this) |
struct block_symbol | lookup_symbol_search_name (const char *search_name, const struct block *block, domain_enum domain) |
struct block_symbol | lookup_language_this (const struct language_defn *lang, const struct block *block) |
static int | check_field (struct type *type, const char *name, struct field_of_this_result *is_a_field_of_this) |
static struct block_symbol | lookup_symbol_aux (const char *name, symbol_name_match_type match_type, const struct block *block, const domain_enum domain, enum language language, struct field_of_this_result *is_a_field_of_this) |
static struct block_symbol | lookup_local_symbol (const char *name, symbol_name_match_type match_type, const struct block *block, const domain_enum domain, enum language language) |
struct symbol * | lookup_symbol_in_block (const char *name, symbol_name_match_type match_type, const struct block *block, const domain_enum domain) |
struct block_symbol | lookup_global_symbol_from_objfile (struct objfile *main_objfile, enum block_enum block_index, const char *name, const domain_enum domain) |
static struct block_symbol | lookup_symbol_in_objfile_symtabs (struct objfile *objfile, enum block_enum block_index, const char *name, const domain_enum domain) |
static struct block_symbol | lookup_symbol_in_objfile_from_linkage_name (struct objfile *objfile, const char *linkage_name, domain_enum domain) |
static void ATTRIBUTE_NORETURN | error_in_psymtab_expansion (enum block_enum block_index, const char *name, struct compunit_symtab *cust) |
static struct block_symbol | lookup_symbol_via_quick_fns (struct objfile *objfile, enum block_enum block_index, const char *name, const domain_enum domain) |
struct block_symbol | lookup_symbol_in_static_block (const char *name, const struct block *block, const domain_enum domain) |
static struct block_symbol | lookup_global_or_static_symbol (const char *name, enum block_enum block_index, struct objfile *objfile, const domain_enum domain) |
struct block_symbol | lookup_static_symbol (const char *name, const domain_enum domain) |
struct block_symbol | lookup_global_symbol (const char *name, const struct block *block, const domain_enum domain) |
bool | symbol_matches_domain (enum language symbol_language, domain_enum symbol_domain, domain_enum domain) |
struct type * | lookup_transparent_type (const char *name) |
static struct type * | basic_lookup_transparent_type_quick (struct objfile *objfile, enum block_enum block_index, const char *name) |
static struct type * | basic_lookup_transparent_type_1 (struct objfile *objfile, enum block_enum block_index, const char *name) |
struct type * | basic_lookup_transparent_type (const char *name) |
bool | iterate_over_symbols (const struct block *block, const lookup_name_info &name, const domain_enum domain, gdb::function_view< symbol_found_callback_ftype > callback) |
bool | iterate_over_symbols_terminated (const struct block *block, const lookup_name_info &name, const domain_enum domain, gdb::function_view< symbol_found_callback_ftype > callback) |
struct compunit_symtab * | find_pc_sect_compunit_symtab (CORE_ADDR pc, struct obj_section *section) |
struct compunit_symtab * | find_pc_compunit_symtab (CORE_ADDR pc) |
struct symbol * | find_symbol_at_address (CORE_ADDR address) |
struct symtab_and_line | find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) |
struct symtab_and_line | find_pc_line (CORE_ADDR pc, int notcurrent) |
struct symtab * | find_pc_line_symtab (CORE_ADDR pc) |
struct symtab * | find_line_symtab (struct symtab *sym_tab, int line, int *index, bool *exact_match) |
std::vector< CORE_ADDR > | find_pcs_for_symtab_line (struct symtab *symtab, int line, const linetable_entry **best_item) |
bool | find_line_pc (struct symtab *symtab, int line, CORE_ADDR *pc) |
bool | find_line_pc_range (struct symtab_and_line sal, CORE_ADDR *startptr, CORE_ADDR *endptr) |
bool | find_pc_line_pc_range (CORE_ADDR pc, CORE_ADDR *startptr, CORE_ADDR *endptr) |
static symtab_and_line | find_function_start_sal_1 (CORE_ADDR func_addr, obj_section *section, bool funfirstline) |
symtab_and_line | find_function_start_sal (CORE_ADDR func_addr, obj_section *section, bool funfirstline) |
symtab_and_line | find_function_start_sal (symbol *sym, bool funfirstline) |
static CORE_ADDR | skip_prologue_using_lineinfo (CORE_ADDR func_addr, struct symtab *symtab) |
static gdb::optional< CORE_ADDR > | skip_prologue_using_linetable (CORE_ADDR func_addr) |
void | skip_prologue_sal (struct symtab_and_line *sal) |
CORE_ADDR | skip_prologue_using_sal (struct gdbarch *gdbarch, CORE_ADDR func_addr) |
symbol * | find_function_alias_target (bound_minimal_symbol msymbol) |
static const char * | operator_chars (const char *p, const char **end) |
static gdb::option::option_def_group | make_info_sources_options_def_group (filename_partial_match_opts *isrc_opts) |
static void | info_sources_command_completer (cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *word) |
void | info_sources_worker (struct ui_out *uiout, bool group_by_objfile, const info_sources_filter &filter) |
static void | info_sources_command (const char *args, int from_tty) |
static bool | file_matches (const char *file, const std::vector< const char * > &filenames, bool basenames) |
bool | treg_matches_sym_type_name (const compiled_regex &treg, const struct symbol *sym) |
std::string | symbol_to_info_string (struct symbol *sym, int block, enum search_domain kind) |
static void | print_symbol_info (enum search_domain kind, struct symbol *sym, int block, const char *last) |
static void | print_msymbol_info (struct bound_minimal_symbol msymbol) |
static void | symtab_symbol_info (bool quiet, bool exclude_minsyms, const char *regexp, enum search_domain kind, const char *t_regexp, int from_tty) |
static gdb::option::option_def_group | make_info_vars_funcs_options_def_group (info_vars_funcs_options *opts) |
static void | info_vars_funcs_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
static void | info_variables_command (const char *args, int from_tty) |
static void | info_functions_command (const char *args, int from_tty) |
static gdb::option::option_def_group | make_info_types_options_def_group (info_types_options *opts) |
static void | info_types_command (const char *args, int from_tty) |
static void | info_types_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
static void | info_modules_command (const char *args, int from_tty) |
static void | info_main_command (const char *args, int from_tty) |
static int | compare_symbol_name (const char *symbol_name, language symbol_language, const lookup_name_info &lookup_name, completion_match_result &match_res) |
bool | completion_list_add_name (completion_tracker &tracker, language symbol_language, const char *symname, const lookup_name_info &lookup_name, const char *text, const char *word) |
static void | completion_list_add_symbol (completion_tracker &tracker, symbol *sym, const lookup_name_info &lookup_name, const char *text, const char *word) |
static void | completion_list_add_msymbol (completion_tracker &tracker, minimal_symbol *sym, const lookup_name_info &lookup_name, const char *text, const char *word) |
static void | completion_list_objc_symbol (completion_tracker &tracker, struct minimal_symbol *msymbol, const lookup_name_info &lookup_name, const char *text, const char *word) |
static const char * | language_search_unquoted_string (const char *text, const char *p) |
static void | completion_list_add_fields (completion_tracker &tracker, struct symbol *sym, const lookup_name_info &lookup_name, const char *text, const char *word) |
bool | symbol_is_function_or_method (symbol *sym) |
bool | symbol_is_function_or_method (minimal_symbol *msymbol) |
bound_minimal_symbol | find_gnu_ifunc (const symbol *sym) |
static void | add_symtab_completions (struct compunit_symtab *cust, completion_tracker &tracker, complete_symbol_mode mode, const lookup_name_info &lookup_name, const char *text, const char *word, enum type_code code) |
void | default_collect_symbol_completion_matches_break_on (completion_tracker &tracker, complete_symbol_mode mode, symbol_name_match_type name_match_type, const char *text, const char *word, const char *break_on, enum type_code code) |
void | collect_symbol_completion_matches (completion_tracker &tracker, complete_symbol_mode mode, symbol_name_match_type name_match_type, const char *text, const char *word) |
void | collect_symbol_completion_matches_type (completion_tracker &tracker, const char *text, const char *word, enum type_code code) |
void | collect_file_symbol_completion_matches (completion_tracker &tracker, complete_symbol_mode mode, symbol_name_match_type name_match_type, const char *text, const char *word, const char *srcfile) |
static void | add_filename_to_list (const char *fname, const char *text, const char *word, completion_list *list) |
static int | not_interesting_fname (const char *fname) |
completion_list | make_source_files_completion_list (const char *text, const char *word) |
static main_info * | get_main_info (program_space *pspace) |
static void | find_main_name (void) |
const char * | main_name () |
enum language | main_language (void) |
bool | producer_is_realview (const char *producer) |
gdb::array_view< const struct symbol_impl > | symbol_impls (symbol_impl) |
gdb_static_assert (MAX_SYMBOL_IMPLS<=(1<< SYMBOL_ACLASS_BITS)) | |
int | register_symbol_computed_impl (enum address_class aclass, const struct symbol_computed_ops *ops) |
int | register_symbol_block_impl (enum address_class aclass, const struct symbol_block_ops *ops) |
int | register_symbol_register_impl (enum address_class aclass, const struct symbol_register_ops *ops) |
static void | initialize_ordinary_address_classes (void) |
CORE_ADDR | get_symbol_address (const struct symbol *sym) |
CORE_ADDR | get_msymbol_address (struct objfile *objf, const struct minimal_symbol *minsym) |
std::vector< module_symbol_search > | search_module_symbols (const char *module_regexp, const char *regexp, const char *type_regexp, search_domain kind) |
static void | info_module_subcommand (bool quiet, const char *module_regexp, const char *regexp, const char *type_regexp, search_domain kind) |
static gdb::option::option_def_group | make_info_modules_var_func_options_def_group (info_modules_var_func_options *opts) |
static void | info_module_functions_command (const char *args, int from_tty) |
static void | info_module_variables_command (const char *args, int from_tty) |
static void | info_module_var_func_command_completer (struct cmd_list_element *ignore, completion_tracker &tracker, const char *text, const char *) |
void | _initialize_symtab () |
#define MAX_SYMBOL_CACHE_SIZE (1024*1024) |
Definition at line 133 of file symtab.c.
Referenced by set_symbol_cache_size_handler().
#define MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 11) |
Definition at line 6379 of file symtab.c.
Referenced by register_symbol_block_impl(), register_symbol_computed_impl(), and register_symbol_register_impl().
#define SYMBOL_LOOKUP_FAILED ((struct block_symbol) {(struct symbol *) 1, NULL}) |
Definition at line 137 of file symtab.c.
Referenced by symbol_cache_lookup().
#define SYMBOL_LOOKUP_FAILED_P | ( | SIB | ) | (SIB.symbol == (struct symbol *) 1) |
Definition at line 139 of file symtab.c.
Referenced by lookup_global_or_static_symbol().
void _initialize_symtab | ( | ) |
Definition at line 6852 of file symtab.c.
Referenced by initialize_all_files().
|
static |
Definition at line 6060 of file symtab.c.
References make_completion_match_str().
Referenced by make_source_files_completion_list(), and add_partial_filename_data::operator()().
|
static |
Definition at line 5712 of file symtab.c.
References blockvector::block(), compunit_symtab::blockvector(), code, completion_list_add_symbol(), completion_skip_symbol(), GLOBAL_BLOCK, QUIT, STATIC_BLOCK, STRUCT_DOMAIN, and TYPE_CODE_UNDEF.
Referenced by collect_file_symbol_completion_matches(), and default_collect_symbol_completion_matches_break_on().
struct type * basic_lookup_transparent_type | ( | const char * | name | ) |
Definition at line 2740 of file symtab.c.
References basic_lookup_transparent_type_1(), basic_lookup_transparent_type_quick(), current_program_space, GLOBAL_BLOCK, name, program_space::objfiles(), and STATIC_BLOCK.
Referenced by cp_lookup_transparent_type(), cp_lookup_transparent_type_loop(), and language_defn::lookup_transparent_type().
|
static |
Definition at line 2709 of file symtab.c.
References blockvector::block(), block_find_symbol(), objfile::compunits(), FULL, name, STRUCT_DOMAIN, symbol::type(), and TYPE_IS_OPAQUE.
Referenced by basic_lookup_transparent_type().
|
static |
Definition at line 2680 of file symtab.c.
References blockvector::block(), block_find_symbol(), compunit_symtab::blockvector(), error_in_psymtab_expansion(), FULL, objfile::lookup_symbol(), name, STRUCT_DOMAIN, symbol::type(), and TYPE_IS_OPAQUE.
Referenced by basic_lookup_transparent_type().
|
static |
Definition at line 2025 of file symtab.c.
References check_field(), check_typedef(), type::field(), field_of_this_result::field, field_of_this_result::fn_field, name, field::name(), type::num_fields(), strcmp_iw(), type, field_of_this_result::type, TYPE_BASECLASS, TYPE_FN_FIELDLIST, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, and TYPE_NFN_FIELDS.
Referenced by check_field(), and lookup_symbol_aux().
void collect_file_symbol_completion_matches | ( | completion_tracker & | tracker, |
complete_symbol_mode | mode, | ||
symbol_name_match_type | name_match_type, | ||
const char * | text, | ||
const char * | word, | ||
const char * | srcfile ) |
Definition at line 5987 of file symtab.c.
References add_symtab_completions(), symtab::compunit(), iterate_over_symtabs(), language_search_unquoted_string(), LINESPEC, and TYPE_CODE_UNDEF.
Referenced by complete_files_symbols(), and linespec_complete_function().
void collect_symbol_completion_matches | ( | completion_tracker & | tracker, |
complete_symbol_mode | mode, | ||
symbol_name_match_type | name_match_type, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 5953 of file symtab.c.
References language_defn::collect_symbol_completion_matches(), current_language, and TYPE_CODE_UNDEF.
Referenced by complete_files_symbols(), frame_selection_by_function_completer(), linespec_complete_function(), and symbol_completer().
void collect_symbol_completion_matches_type | ( | completion_tracker & | tracker, |
const char * | text, | ||
const char * | word, | ||
enum type_code | code ) |
Definition at line 5968 of file symtab.c.
References code, language_defn::collect_symbol_completion_matches(), current_language, and EXPRESSION.
Referenced by expr_complete_tag::complete().
bool compare_filenames_for_search | ( | const char * | filename, |
const char * | search_name ) |
Definition at line 489 of file symtab.c.
References symtab::filename.
Referenced by skiplist_entry::do_skip_file_p(), file_matches(), gdbpy_lookup_objfile(), iterate_over_some_symtabs(), maintenance_print_msymbols(), maintenance_print_psymbols(), maintenance_print_symbols(), and objfile::map_symtabs_matching_filename().
bool compare_glob_filenames_for_search | ( | const char * | filename, |
const char * | search_name ) |
Definition at line 527 of file symtab.c.
References count_path_elements(), symtab::filename, gdb_filename_fnmatch(), and strip_leading_path_elements().
Referenced by skiplist_entry::do_skip_gfile_p().
|
static |
Definition at line 5398 of file symtab.c.
References language_defn::get_symbol_name_matcher(), and language_def().
Referenced by completion_list_add_name().
|
static |
Definition at line 5615 of file symtab.c.
References symbol::aclass(), type::code(), completion_list_add_name(), type::field(), general_symbol_info::language(), LOC_TYPEDEF, field::name(), type::num_fields(), symbol::type(), and TYPE_N_BASECLASSES.
Referenced by default_collect_symbol_completion_matches_break_on().
|
static |
Definition at line 5490 of file symtab.c.
References completion_list_add_name(), general_symbol_info::language(), and general_symbol_info::natural_name().
Referenced by default_collect_symbol_completion_matches_break_on().
bool completion_list_add_name | ( | completion_tracker & | tracker, |
language | symbol_language, | ||
const char * | symname, | ||
const lookup_name_info & | lookup_name, | ||
const char * | text, | ||
const char * | word ) |
Definition at line 5413 of file symtab.c.
References completion_tracker::add_completion(), compare_symbol_name(), make_completion_match_str(), completion_match::match(), completion_match_result::match, completion_match_result::match_for_lcd, and completion_tracker::reset_completion_match_result().
Referenced by ada_language::collect_symbol_completion_matches(), completion_list_add_fields(), completion_list_add_msymbol(), completion_list_add_symbol(), completion_list_objc_symbol(), and default_collect_symbol_completion_matches_break_on().
|
static |
Definition at line 5455 of file symtab.c.
References symbol::aclass(), completion_list_add_name(), cp_canonicalize_string_no_typedefs(), symbol::domain(), general_symbol_info::language(), language_cplus, LOC_BLOCK, general_symbol_info::natural_name(), completion_tracker::remove_completion(), and VAR_DOMAIN.
Referenced by add_symtab_completions(), and default_collect_symbol_completion_matches_break_on().
|
static |
Definition at line 5505 of file symtab.c.
References completion_list_add_name(), language_objc, general_symbol_info::natural_name(), selector, and xrealloc().
Referenced by default_collect_symbol_completion_matches_break_on().
|
static |
Definition at line 877 of file symtab.c.
References objfile_per_bfd_storage::demangled_names_hash, eq_demangled_name_entry(), free_demangled_name_entry(), hash_demangled_name_entry(), objfile_per_bfd_storage::minimal_symbol_count, xcalloc(), and xfree().
Referenced by general_symbol_info::compute_and_set_names().
void default_collect_symbol_completion_matches_break_on | ( | completion_tracker & | tracker, |
complete_symbol_mode | mode, | ||
symbol_name_match_type | name_match_type, | ||
const char * | text, | ||
const char * | word, | ||
const char * | break_on, | ||
enum type_code | code ) |
Definition at line 5745 of file symtab.c.
References add_symtab_completions(), ALL_DOMAIN, code, completion_list_add_fields(), completion_list_add_msymbol(), completion_list_add_name(), completion_list_add_symbol(), completion_list_objc_symbol(), completion_skip_symbol(), objfile::compunits(), current_language, current_program_space, default_macro_scope(), expand_symtabs_matching(), block::function(), get_selected_block(), block::global_block(), block::inlined_p(), language_c, LINESPEC, language_defn::macro_expansion(), macro_expansion_c, macro_for_each(), macro_for_each_in_scope(), macro_user_macros, objfile::msymbols(), nullptr, program_space::objfiles(), QUIT, block::scope(), SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, block::static_block(), STRUCT_DOMAIN, block::superblock(), and TYPE_CODE_UNDEF.
Referenced by language_defn::collect_symbol_completion_matches(), and f_language::collect_symbol_completion_matches().
const char * demangle_for_lookup | ( | const char * | name, |
enum language | lang, | ||
demangle_result_storage & | storage ) |
Definition at line 1890 of file symtab.c.
References cp_canonicalize_string(), d_demangle(), language_defn::demangle_symbol(), general_symbol_info::demangled_name, gdb_demangle(), language_cplus, language_d, language_def(), language_go, name, and demangle_result_storage::set_malloc_ptr().
Referenced by demangle_for_lookup_info::demangle_for_lookup_info(), lookup_symbol_in_language(), and lookup_symbol_in_objfile_from_linkage_name().
|
static |
Definition at line 215 of file symtab.c.
References block_symbol_cache::size, symbol_cache_clear_slot(), block_symbol_cache::symbols, and xfree().
Referenced by resize_symbol_cache(), and symbol_cache::~symbol_cache().
const char * domain_name | ( | domain_enum | e | ) |
Definition at line 303 of file symtab.c.
References COMMON_BLOCK_DOMAIN, LABEL_DOMAIN, MODULE_DOMAIN, STRUCT_DOMAIN, UNDEF_DOMAIN, and VAR_DOMAIN.
Referenced by cp_lookup_nested_symbol(), cp_lookup_symbol_imports_or_template(), cp_lookup_symbol_namespace(), cp_lookup_symbol_nonlocal(), objfile::expand_matching_symbols(), objfile::lookup_symbol(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_objfile(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_in_static_block(), rust_language::lookup_symbol_nonlocal(), lookup_symbol_via_quick_fns(), symbol_cache_dump(), and symbol_cache_lookup().
|
static |
Definition at line 853 of file symtab.c.
References demangled_name_entry::mangled.
Referenced by create_demangled_names_hash().
|
static |
Definition at line 1226 of file symtab.c.
References symbol_cache_slot::domain, symbol::domain(), symbol_cache_slot::found, FULL, general_symbol_info::language(), name, symbol_cache_slot::name, symbol_cache_slot::not_found, symbol_cache_slot::objfile_context, general_symbol_info::search_name(), symbol_cache_slot::state, block_symbol::symbol, symbol_matches_domain(), symbol_matches_search_name(), SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, and symbol_cache_slot::value.
Referenced by symbol_cache_lookup().
|
static |
Definition at line 2379 of file symtab.c.
References GLOBAL_BLOCK, name, compunit_symtab::primary_filetab(), and symtab_to_filename_for_display().
Referenced by basic_lookup_transparent_type_quick(), and lookup_symbol_via_quick_fns().
|
static |
Definition at line 4559 of file symtab.c.
References compare_filenames_for_search(), and name.
Referenced by global_symbol_searcher::add_matching_symbols(), and global_symbol_searcher::expand_symtabs().
symbol * find_function_alias_target | ( | bound_minimal_symbol | msymbol | ) |
Definition at line 4066 of file symtab.c.
References symbol::aclass(), block::entry_pc(), find_pc_function(), LOC_BLOCK, symtab_and_line::msymbol, msymbol_is_function(), and symbol::value_block().
Referenced by yyparse().
symtab_and_line find_function_start_sal | ( | CORE_ADDR | func_addr, |
obj_section * | section, | ||
bool | funfirstline ) |
Definition at line 3639 of file symtab.c.
References find_function_start_sal_1(), find_pc_sect_containing_function(), symtab_and_line::pc, symtab_and_line::section, and symtab_and_line::symbol.
Referenced by elf_gnu_ifunc_resolver_return_stop(), minsym_found(), select_source_symtab(), symbol_to_sal(), and user_select_syms().
symtab_and_line find_function_start_sal | ( | symbol * | sym, |
bool | funfirstline ) |
Definition at line 3656 of file symtab.c.
References block::entry_pc(), find_function_start_sal_1(), general_symbol_info::obj_section(), symbol::objfile(), symtab_and_line::symbol, and symbol::value_block().
Referenced by ada_exception_sal().
|
static |
Definition at line 3601 of file symtab.c.
References objfile::arch(), symtab::compunit(), current_program_space, find_pc_sect_line(), gdbarch_skip_entrypoint(), gdbarch_skip_entrypoint_p(), symtab::language(), language_asm, compunit_symtab::locations_valid(), compunit_symtab::objfile(), symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, skip_prologue_sal(), and symtab_and_line::symtab.
Referenced by find_function_start_sal(), and find_function_start_sal().
bound_minimal_symbol find_gnu_ifunc | ( | const symbol * | sym | ) |
Definition at line 5670 of file symtab.c.
References symbol::aclass(), block::entry_pc(), if(), iterate_over_minimal_symbols(), LOC_BLOCK, mst_data_gnu_ifunc, mst_text_gnu_ifunc, symbol::objfile(), SEARCH_NAME, general_symbol_info::search_name(), minimal_symbol::type(), and symbol::value_block().
Referenced by yyparse().
|
static |
Definition at line 3539 of file symtab.c.
References linetable_entry::is_stmt, linetable::item, linetable_entry::line, and linetable::nitems.
Referenced by find_line_symtab(), and find_pcs_for_symtab_line().
bool find_line_pc | ( | struct symtab * | symtab, |
int | line, | ||
CORE_ADDR * | pc ) |
Definition at line 3472 of file symtab.c.
References symtab::compunit(), find_line_symtab(), linetable::item, symtab::linetable(), compunit_symtab::objfile(), and linetable_entry::pc().
Referenced by tui_source_window::display_start_addr(), tui_source_window::do_scroll_vertical(), find_line_pc_range(), mi_cmd_disassemble(), tui_source_window_base::rerender(), resolve_sal_pc(), tui_get_begin_asm_address(), tui_update_source_windows_with_line(), and update_static_tracepoint().
bool find_line_pc_range | ( | struct symtab_and_line | sal, |
CORE_ADDR * | startptr, | ||
CORE_ADDR * | endptr ) |
Definition at line 3499 of file symtab.c.
References symtab_and_line::end, find_line_pc(), find_pc_sect_line(), symtab_and_line::line, symtab_and_line::pc, symtab_and_line::section, and symtab_and_line::symtab.
Referenced by find_breakpoint_range_end(), info_line_command(), mi_cmd_trace_find(), and tfind_line_command().
struct symtab * find_line_symtab | ( | struct symtab * | sym_tab, |
int | line, | ||
int * | index, | ||
bool * | exact_match ) |
Definition at line 3338 of file symtab.c.
References objfile::compunits(), current_program_space, objfile::expand_symtabs_with_fullname(), symtab::filename, find_line_common(), linetable::item, linetable_entry::line, symtab::linetable(), program_space::objfiles(), and symtab_to_fullname().
Referenced by decode_digits_list_mode(), and find_line_pc().
|
static |
Definition at line 6226 of file symtab.c.
References ada_main_name(), current_program_space, d_main_name(), gdbarch_iterate_over_objfiles_in_search_order(), go_main_name(), language_ada, language_d, language_go, objfile_per_bfd_storage::language_of_main, language_pascal, language_unknown, objfile::lookup_global_symbol_language(), objfile_per_bfd_storage::name_of_main, program_space::objfiles(), pascal_main_name(), objfile::per_bfd, set_main_name(), target_gdbarch(), and VAR_DOMAIN.
Referenced by main_language(), and main_name().
struct compunit_symtab * find_pc_compunit_symtab | ( | CORE_ADDR | pc | ) |
Definition at line 2946 of file symtab.c.
References find_pc_mapped_section(), and find_pc_sect_compunit_symtab().
Referenced by global_symbol_searcher::add_matching_msymbols(), amd64_epilogue_frame_sniffer_1(), amd64_skip_prologue(), arm_skip_prologue(), call_site_for_pc(), dwarf2_frame_find_quirks(), global_symbol_searcher::expand_symtabs(), gdbscm_lookup_block(), get_frame_language(), get_selected_pc_producer_options(), handle_step_into_function(), handle_step_into_function_backward(), i386_epilogue_frame_sniffer_1(), i386_skip_prologue(), pspy_block_for_pc(), and select_frame().
struct symtab_and_line find_pc_line | ( | CORE_ADDR | pc, |
int | notcurrent ) |
Definition at line 3295 of file symtab.c.
References symtab_and_line::end, find_pc_overlay(), find_pc_sect_line(), overlay_mapped_address(), overlay_unmapped_address(), symtab_and_line::pc, pc_in_unmapped_range(), and symtab_and_line::section.
Referenced by aarch64_scan_prologue(), after_prologue(), arc_make_frame_cache(), arm_linux_copy_svc(), BP_MANIPULATION(), btrace_compute_src_line_range(), c_parse(), call0_analyze_prologue(), convert_address_location_to_sals(), cp_lookup_symbol_via_imports(), cris_skip_prologue(), decode_static_tracepoint_spec(), default_macro_scope(), do_mixed_source_and_assembly(), do_mixed_source_and_assembly_deprecated(), find_frame_sal(), find_last_line_symbol(), find_pc_line_pc_range(), find_pc_line_symtab(), find_pc_sect_line(), finish_backward(), finish_forward(), frv_skip_prologue(), ft32_skip_prologue(), gdbscm_find_pc_line(), h8300_skip_prologue(), handle_step_into_function(), handle_step_into_function_backward(), info_checkpoints_command(), insert_single_step_breakpoint(), iq2000_skip_prologue(), list_command(), m32r_skip_prologue(), m68hc11_skip_prologue(), microblaze_skip_prologue(), moxie_skip_prologue(), or1k_skip_prologue(), parse_breakpoint_sals(), print_one_static_tracepoint_marker(), process_event_stop_test(), pspy_find_pc_line(), recpy_bt_insn_sal(), tui_source_window_base::refill(), refine_prologue_limit(), save_bookmark_command(), set_momentary_breakpoint_at_pc(), set_traceframe_context(), skip_prologue(), skip_prologue_using_linetable(), skip_prologue_using_sal(), sparc64_skip_prologue(), tfind_line_command(), tui_update_source_windows_with_addr(), until_break_command(), until_next_command(), update_static_tracepoint(), v850_skip_prologue(), using_direct::valid_line(), write_macro_definitions(), xstormy16_skip_prologue(), xtensa_skip_prologue(), and z80_skip_prologue().
bool find_pc_line_pc_range | ( | CORE_ADDR | pc, |
CORE_ADDR * | startptr, | ||
CORE_ADDR * | endptr ) |
Definition at line 3587 of file symtab.c.
References symtab_and_line::end, find_pc_line(), symtab_and_line::pc, and symtab_and_line::symtab.
Referenced by prepare_one_step().
struct symtab * find_pc_line_symtab | ( | CORE_ADDR | pc | ) |
Definition at line 3317 of file symtab.c.
References find_pc_line(), symtab_and_line::pc, and symtab_and_line::symtab.
Referenced by btrace_find_line_range(), tui_source_window::do_scroll_vertical(), gdb_disassembly(), maintenance_print_symbols(), tui_source_window_base::rerender(), and tui_display_main().
struct compunit_symtab * find_pc_sect_compunit_symtab | ( | CORE_ADDR | pc, |
struct obj_section * | section ) |
Definition at line 2827 of file symtab.c.
References blockvector::block(), current_program_space, minimal_symbol::data_p(), block::end(), addrmap::find(), blockvector::global_block(), GLOBAL_BLOCK, lookup_minimal_symbol_by_pc_section(), blockvector::map(), matching_obj_sections(), bound_minimal_symbol::minsym, program_space::objfiles(), range, block::start(), and STATIC_BLOCK.
Referenced by blockvector_for_pc_sect(), find_pc_compunit_symtab(), find_pc_partial_function_sym(), and find_pc_sect_line().
struct symtab_and_line find_pc_sect_line | ( | CORE_ADDR | pc, |
struct obj_section * | section, | ||
int | notcurrent ) |
Definition at line 3023 of file symtab.c.
References compunit_symtab::blockvector(), current_program_space, block::end(), symtab_and_line::end, compunit_symtab::filetabs(), find_pc_line(), find_pc_sect_compunit_symtab(), blockvector::global_block(), linetable_entry::is_stmt, symtab_and_line::is_stmt, linetable::item, linetable_entry::line, symtab_and_line::line, general_symbol_info::linkage_name(), lookup_minimal_symbol_by_pc(), lookup_minimal_symbol_text(), bound_minimal_symbol::minsym, mst_solib_trampoline, linetable::nitems, compunit_symtab::objfile(), linetable_entry::pc(), symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, symtab_and_line::symtab, objfile::text_section_offset(), minimal_symbol::type(), linetable_entry::unrelocated_pc(), and bound_minimal_symbol::value_address().
Referenced by add_minsym(), amd64_skip_xmm_prologue(), build_address_symbolic(), find_function_start_sal_1(), find_instruction_backward(), find_line_pc_range(), find_pc_line(), and skip_prologue_sal().
std::vector< CORE_ADDR > find_pcs_for_symtab_line | ( | struct symtab * | symtab, |
int | line, | ||
const linetable_entry ** | best_item ) |
Definition at line 3430 of file symtab.c.
References symtab::compunit(), find_line_common(), linetable_entry::is_stmt, linetable::item, linetable_entry::line, symtab::linetable(), compunit_symtab::objfile(), and linetable_entry::pc().
Referenced by decode_digits_ordinary(), and ltpy_get_pcs_for_line().
struct symbol * find_symbol_at_address | ( | CORE_ADDR | address | ) |
Definition at line 2954 of file symtab.c.
References general_symbol_info::address, blockvector::block(), objfile::compunits(), current_program_space, objfile::find_compunit_symtab_by_address(), objfile::flags, GLOBAL_BLOCK, LOC_STATIC, OBJF_READNOW, program_space::objfiles(), STATIC_BLOCK, and symbol::symtab.
Referenced by rust_get_trait_object_pointer().
Definition at line 1723 of file symtab.c.
References symbol::aclass(), symbol::is_objfile_owned(), general_symbol_info::linkage_name(), LOC_LABEL, LOC_STATIC, lookup_minimal_symbol_by_pc_name(), objfile::sect_index_data, objfile::sect_index_text, general_symbol_info::section_index(), objfile::section_offsets, objfile::sections(), objfile::sections_start, general_symbol_info::set_section_index(), and symbol::value_address().
Referenced by var_decode_location().
|
static |
Definition at line 864 of file symtab.c.
Referenced by create_demangled_names_hash().
char * gdb_mangle_name | ( | struct type * | type, |
int | method_id, | ||
int | signature_id ) |
Definition at line 695 of file symtab.c.
References f(), field_name(), fn_field::is_const, fn_field::is_constructor, is_constructor_name(), is_destructor_name(), is_operator_name(), fn_field::is_volatile, type::name(), fn_field::physname, TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_NAME, and xmalloc().
Referenced by c_type_print_base_struct_union(), and check_stub_method().
gdb_static_assert | ( | MAX_SYMBOL_IMPLS<= | 1<< SYMBOL_ACLASS_BITS | ) |
|
static |
Definition at line 6187 of file symtab.c.
References registry< T >::get(), and main_progspace_key.
Referenced by main_language(), main_name(), and set_main_name().
CORE_ADDR get_msymbol_address | ( | struct objfile * | objf, |
const struct minimal_symbol * | minsym ) |
Definition at line 6535 of file symtab.c.
References general_symbol_info::address, objfile::flags, general_symbol_info::linkage_name(), lookup_minimal_symbol_linkage(), general_symbol_info::m_value, minimal_symbol::maybe_copied(), bound_minimal_symbol::minsym, OBJF_MAINLINE, general_symbol_info::section_index(), objfile::section_offsets, and bound_minimal_symbol::value_address().
Referenced by minimal_symbol::value_address().
CORE_ADDR get_symbol_address | ( | const struct symbol * | sym | ) |
Definition at line 6519 of file symtab.c.
References symbol::aclass(), general_symbol_info::address, general_symbol_info::linkage_name(), LOC_STATIC, lookup_minimal_symbol_linkage(), general_symbol_info::m_value, symbol::maybe_copied, bound_minimal_symbol::minsym, and bound_minimal_symbol::value_address().
Referenced by symbol::value_address().
|
static |
Definition at line 1347 of file symtab.c.
References registry< T >::get(), resize_symbol_cache(), symbol_cache_key, and symbol_cache_size.
Referenced by lookup_global_or_static_symbol().
|
static |
Definition at line 842 of file symtab.c.
References demangled_name_entry::mangled.
Referenced by general_symbol_info::compute_and_set_names(), and create_demangled_names_hash().
|
static |
Definition at line 1205 of file symtab.c.
References name, STRUCT_DOMAIN, and VAR_DOMAIN.
Referenced by symbol_cache_lookup().
|
static |
Definition at line 5235 of file symtab.c.
References FUNCTIONS_DOMAIN, make_info_vars_funcs_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and symtab_symbol_info().
|
static |
Definition at line 5328 of file symtab.c.
References gdb_printf(), and main_name().
|
static |
Definition at line 6795 of file symtab.c.
References FUNCTIONS_DOMAIN, info_module_subcommand(), make_info_modules_var_func_options_def_group(), nullptr, gdb::option::process_options(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND.
|
static |
Definition at line 6608 of file symtab.c.
References symbol_search::block, FUNCTIONS_DOMAIN, gdb_printf(), general_symbol_info::print_name(), print_symbol_info(), search_module_symbols(), symbol_search::symbol, symbol::symtab, symtab_to_filename_for_display(), and VARIABLES_DOMAIN.
Referenced by info_module_functions_command(), and info_module_variables_command().
|
static |
Definition at line 6833 of file symtab.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), make_info_modules_var_func_options_def_group(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and symbol_completer().
|
static |
Definition at line 6814 of file symtab.c.
References info_module_subcommand(), make_info_modules_var_func_options_def_group(), nullptr, gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and VARIABLES_DOMAIN.
|
static |
Definition at line 5312 of file symtab.c.
References make_info_types_options_def_group(), MODULES_DOMAIN, gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and symtab_symbol_info().
|
static |
Definition at line 4523 of file symtab.c.
References filename_partial_match_opts::basename, info_sources_filter::BASENAME, current_uiout, filename_partial_match_opts::dirname, info_sources_filter::DIRNAME, info_sources_filter::FULLNAME, have_full_symbols(), have_partial_symbols(), info_sources_worker(), make_info_sources_options_def_group(), gdb::option::process_options(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_ERROR.
|
static |
Definition at line 4432 of file symtab.c.
References gdb::option::complete_options(), make_info_sources_options_def_group(), and gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND.
void info_sources_worker | ( | struct ui_out * | uiout, |
bool | group_by_objfile, | ||
const info_sources_filter & | filter ) |
Definition at line 4445 of file symtab.c.
References objfile::compunits(), current_program_space, current_uiout, ui_out::field_string(), file_name_style, objfile::has_unexpanded_symtabs(), ui_out::is_mi_like_p(), objfile::map_symbol_filenames(), map_symbol_filenames(), objfile_has_symbols(), objfile_name(), program_space::objfiles(), cli_style_option::style(), symtab_to_filename_for_display(), symtab_to_fullname(), and ui_out::text().
Referenced by info_sources_command(), and mi_cmd_file_list_exec_source_files().
|
static |
Definition at line 5280 of file symtab.c.
References make_info_types_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, symtab_symbol_info(), and TYPES_DOMAIN.
|
static |
Definition at line 5295 of file symtab.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), make_info_types_options_def_group(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and symbol_completer().
|
static |
Definition at line 5217 of file symtab.c.
References make_info_vars_funcs_options_def_group(), gdb::option::process_options(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, symtab_symbol_info(), and VARIABLES_DOMAIN.
|
static |
Definition at line 5200 of file symtab.c.
References advance_to_expression_complete_word_point(), gdb::option::complete_options(), make_info_vars_funcs_options_def_group(), gdb::option::PROCESS_OPTIONS_UNKNOWN_IS_OPERAND, and symbol_completer().
|
static |
Definition at line 6469 of file symtab.c.
References symbol_impl::aclass, and LOC_FINAL_VALUE.
bool iterate_over_some_symtabs | ( | const char * | name, |
const char * | real_path, | ||
struct compunit_symtab * | first, | ||
struct compunit_symtab * | after_last, | ||
gdb::function_view< bool(symtab *)> | callback ) |
Definition at line 570 of file symtab.c.
References basenames_may_differ, compare_filenames_for_search(), compunit_symtab::filetabs(), name, compunit_symtab::next, symtab_to_fullname(), and compunit_symtab::user.
Referenced by iterate_over_symtabs(), and objfile::map_symtabs_matching_filename().
bool iterate_over_symbols | ( | const struct block * | block, |
const lookup_name_info & | name, | ||
const domain_enum | domain, | ||
gdb::function_view< symbol_found_callback_ftype > | callback ) |
Definition at line 2790 of file symtab.c.
References name.
Referenced by iterate_over_symbols_terminated().
bool iterate_over_symbols_terminated | ( | const struct block * | block, |
const lookup_name_info & | name, | ||
const domain_enum | domain, | ||
gdb::function_view< symbol_found_callback_ftype > | callback ) |
Definition at line 2811 of file symtab.c.
References iterate_over_symbols(), and name.
Referenced by map_matching_symbols().
void iterate_over_symtabs | ( | const char * | name, |
gdb::function_view< bool(symtab *)> | callback ) |
Definition at line 639 of file symtab.c.
References objfile::compunit_symtabs, current_program_space, iterate_over_some_symtabs(), objfile::map_symtabs_matching_filename(), name, and program_space::objfiles().
Referenced by collect_file_symbol_completion_matches(), collect_symtabs_from_filename(), and lookup_symtab().
|
static |
Definition at line 5572 of file symtab.c.
References current_language, language_defn::la_language, and language_objc.
Referenced by collect_file_symbol_completion_matches().
|
static |
Definition at line 2558 of file symtab.c.
References objfile::arch(), block_symbol::block, current_program_space, symbol_cache_slot::domain, gdbarch_iterate_over_objfiles_in_search_order(), get_symbol_cache(), GLOBAL_BLOCK, lookup_symbol_in_objfile(), name, objfile::objfile(), STATIC_BLOCK, block_symbol::symbol, symbol_cache_lookup(), symbol_cache_mark_found(), symbol_cache_mark_not_found(), SYMBOL_LOOKUP_FAILED_P, and target_gdbarch().
Referenced by lookup_global_symbol(), and lookup_static_symbol().
struct block_symbol lookup_global_symbol | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain ) |
Definition at line 2613 of file symtab.c.
References best_symbol(), better_symbol(), FULL, block::global_block(), GLOBAL_BLOCK, lookup_global_or_static_symbol(), lookup_symbol_in_block(), name, nullptr, block::objfile(), objfile::separate_debug_objfile_backlink, and block_symbol::symbol.
Referenced by ada_alias_get_block_value(), cp_basic_lookup_symbol(), cp_lookup_bare_symbol(), cp_search_static_and_baseclasses(), d_lookup_symbol(), gdbpy_lookup_global_symbol(), gdbscm_lookup_global_symbol(), language_defn::lookup_symbol_nonlocal(), and rust_language::lookup_symbol_nonlocal().
struct block_symbol lookup_global_symbol_from_objfile | ( | struct objfile * | main_objfile, |
enum block_enum | block_index, | ||
const char * | name, | ||
const domain_enum | domain ) |
Definition at line 2252 of file symtab.c.
References GLOBAL_BLOCK, lookup_symbol_in_objfile(), name, STATIC_BLOCK, and block_symbol::symbol.
Referenced by compile_object_load(), objfpy_lookup_global_symbol(), and objfpy_lookup_static_symbol().
struct block_symbol lookup_language_this | ( | const struct language_defn * | lang, |
const struct block * | block ) |
Definition at line 1986 of file symtab.c.
References block_lookup_symbol(), block::function(), block::objfile(), objfile_debug_name(), general_symbol_info::print_name(), SEARCH_NAME, block::superblock(), symbol_lookup_debug_printf_v, and VAR_DOMAIN.
Referenced by cp_lookup_bare_symbol(), d_lookup_symbol(), expr::op_this_operation::do_generate_ax(), lookup_symbol_aux(), and value_of_this().
|
static |
Referenced by lookup_symbol_aux().
|
static |
Definition at line 2173 of file symtab.c.
References cp_lookup_symbol_imports_or_template(), block::function(), block::inlined_p(), language_cplus, language_fortran, lookup_symbol_in_block(), name, block::scope(), block::static_block(), block::superblock(), and block_symbol::symbol.
struct block_symbol lookup_static_symbol | ( | const char * | name, |
const domain_enum | domain ) |
Definition at line 2605 of file symtab.c.
References lookup_global_or_static_symbol(), name, and STATIC_BLOCK.
Referenced by cp_lookup_nested_symbol_1(), d_lookup_nested_symbol(), find_symbol_in_baseclass(), gdbpy_lookup_static_symbol(), and lookup_symbol_aux().
struct block_symbol lookup_symbol | ( | const char * | name, |
const struct block * | block, | ||
domain_enum | domain, | ||
struct field_of_this_result * | is_a_field_of_this ) |
Definition at line 1964 of file symtab.c.
References current_language, language_defn::la_language, lookup_symbol_in_language(), and name.
Referenced by language_arch_info::bool_type(), check_typedef(), classify_name(), classify_name(), classify_name(), classify_packaged_name(), compile_cplus_convert_struct_or_union_members(), compile_cplus_convert_struct_or_union_methods(), compute_var_value(), convert_symbol_sym(), convert_symbol_sym(), cp_lookup_rtti_type(), cp_search_static_and_baseclasses(), eval_op_func_static_var(), expr::rust_structop::evaluate_funcall(), find_function_in_inferior(), find_imps(), find_label_symbols_in_block(), find_proc_desc(), frapy_read_var(), ft32_skip_prologue(), gcc_convert_symbol(), gcc_cplus_convert_symbol(), gcc_cplus_symbol_address(), gcc_symbol_address(), gdbpy_lookup_symbol(), gdbscm_frame_read_var(), gdbscm_lookup_symbol(), gen_static_field(), gnuv3_get_typeid_type(), info_address_command(), inside_main_func(), inspect_type(), lex_one_token(), lookup_enum(), lookup_struct(), lookup_struct_typedef(), rust_parser::lookup_symbol(), lookup_template_type(), lookup_union(), moxie_skip_prologue(), compile_cplus_instance::new_scope(), package_name_p(), parse_procedure(), parser_state::push_dollar(), replace_typedefs(), select_source_symtab(), type_name_to_scope(), value_fn_field(), f_language::value_print_inner(), value_static_field(), value_struct_elt_for_reference(), xstormy16_skip_prologue(), yylex(), yylex(), yylex(), and yyparse().
|
static |
Referenced by lookup_symbol_in_language(), and lookup_symbol_search_name().
|
static |
Definition at line 2069 of file symtab.c.
References check_field(), check_typedef(), type::code(), domain_name(), type::is_pointer_or_reference(), language_def(), language_str(), lookup_language_this(), lookup_local_symbol(), lookup_static_symbol(), language_defn::lookup_symbol_nonlocal(), name, language_defn::name_of_this(), nullptr, block::objfile(), objfile_debug_name(), STRUCT_DOMAIN, block_symbol::symbol, symbol_lookup_debug, symbol_lookup_debug_printf, SYMBOL_LOOKUP_SCOPED_DEBUG_ENTER_EXIT, type::target_type(), and symbol::type().
struct symbol * lookup_symbol_in_block | ( | const char * | name, |
symbol_name_match_type | match_type, | ||
const struct block * | block, | ||
const domain_enum | domain ) |
Definition at line 2219 of file symtab.c.
References block_lookup_symbol(), domain_name(), name, nullptr, block::objfile(), objfile_debug_name(), symbol_lookup_debug, and symbol_lookup_debug_printf_v.
Referenced by cp_basic_lookup_symbol(), lookup_global_symbol(), lookup_local_symbol(), and lookup_symbol_in_static_block().
struct block_symbol lookup_symbol_in_language | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain, | ||
enum language | lang, | ||
struct field_of_this_result * | is_a_field_of_this ) |
Definition at line 1946 of file symtab.c.
References demangle_for_lookup(), FULL, lookup_symbol_aux(), name, and SYMBOL_LOOKUP_SCOPED_DEBUG_ENTER_EXIT.
Referenced by ada_get_tcb_types_info(), ada_tasks_inferior_data_sniffer(), fbsd_fetch_rtld_offsets(), lookup_symbol(), lookup_typename(), and set_initial_language().
|
static |
Definition at line 2519 of file symtab.c.
References domain_name(), GLOBAL_BLOCK, lookup_symbol_in_objfile_symtabs(), lookup_symbol_via_quick_fns(), name, objfile_debug_name(), STATIC_BLOCK, block_symbol::symbol, and symbol_lookup_debug_printf.
Referenced by lookup_global_or_static_symbol(), and lookup_global_symbol_from_objfile().
|
static |
Definition at line 2344 of file symtab.c.
References current_language, demangle_for_lookup(), GLOBAL_BLOCK, language_defn::la_language, lookup_symbol_in_objfile_symtabs(), objfile::objfile(), objfile::separate_debug_objfile_backlink, objfile::separate_debug_objfiles(), STATIC_BLOCK, and block_symbol::symbol.
Referenced by global_symbol_searcher::add_matching_msymbols(), and global_symbol_searcher::expand_symtabs().
|
static |
Definition at line 2277 of file symtab.c.
References best_symbol(), better_symbol(), blockvector::block(), general_symbol_info::block, block_symbol::block, block_lookup_symbol_primary(), objfile::compunits(), symbol::domain(), domain_name(), GLOBAL_BLOCK, symbol::matches(), name, objfile_debug_name(), STATIC_BLOCK, block_symbol::symbol, and symbol_lookup_debug_printf_v.
Referenced by lookup_symbol_in_objfile(), and lookup_symbol_in_objfile_from_linkage_name().
struct block_symbol lookup_symbol_in_static_block | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain ) |
Definition at line 2479 of file symtab.c.
References domain_name(), FULL, lookup_symbol_in_block(), name, nullptr, block::objfile(), objfile_debug_name(), block::static_block(), symbol_lookup_debug, and symbol_lookup_debug_printf.
Referenced by cp_basic_lookup_symbol(), cp_lookup_bare_symbol(), cp_lookup_nested_symbol_1(), cp_search_static_and_baseclasses(), d_lookup_symbol(), find_symbol_in_baseclass(), gdbpy_lookup_static_symbol(), gdbpy_lookup_static_symbols(), language_defn::lookup_symbol_nonlocal(), and rust_language::lookup_symbol_nonlocal().
struct block_symbol lookup_symbol_search_name | ( | const char * | search_name, |
const struct block * | block, | ||
domain_enum | domain ) |
Definition at line 1976 of file symtab.c.
References language_asm, lookup_symbol_aux(), and SEARCH_NAME.
Referenced by insert_exception_resume_breakpoint(), iterate_over_block_arg_vars(), list_args_or_locals(), print_frame_args(), print_unpacked_pointer(), and pascal_language::value_print_inner().
|
static |
Definition at line 2396 of file symtab.c.
References blockvector::block(), block_symbol::block, block_lookup_symbol(), compunit_symtab::blockvector(), domain_name(), error_in_psymtab_expansion(), FULL, GLOBAL_BLOCK, objfile::lookup_symbol(), name, objfile_debug_name(), block_symbol::symbol, and symbol_lookup_debug_printf_v.
Referenced by lookup_symbol_in_objfile().
struct symtab * lookup_symtab | ( | const char * | name | ) |
Definition at line 675 of file symtab.c.
References iterate_over_symtabs(), and name.
Referenced by block_lookup(), classify_name(), mi_cmd_disassemble(), mi_cmd_symbol_list_lines(), yylex(), yylex(), and yyparse().
struct type * lookup_transparent_type | ( | const char * | name | ) |
Definition at line 2671 of file symtab.c.
References current_language, language_defn::lookup_transparent_type(), and name.
Referenced by check_typedef().
enum language main_language | ( | void | ) |
Definition at line 6336 of file symtab.c.
References current_program_space, find_main_name(), and get_main_info().
Referenced by set_initial_language().
const char * main_name | ( | ) |
Definition at line 6322 of file symtab.c.
References current_program_space, find_main_name(), and get_main_info().
Referenced by info_main_command(), infpy_get_main_name(), debug_names::insert(), inside_main_func(), run_command_1(), select_source_symtab(), set_initial_language(), skip_prologue(), and tui_get_begin_asm_address().
|
static |
Definition at line 1629 of file symtab.c.
References program_spaces, and symbol_cache_flush().
|
static |
Definition at line 1605 of file symtab.c.
References gdb_printf(), registry< T >::get(), objfile_name(), program_spaces, objfile::pspace, symbol_cache_dump(), and symbol_cache_key.
|
static |
Definition at line 1672 of file symtab.c.
References gdb_printf(), registry< T >::get(), objfile_name(), program_spaces, symbol_cache_key, and symbol_cache_stats().
|
inlinestatic |
Definition at line 6786 of file symtab.c.
References info_modules_var_func_options_defs.
Referenced by info_module_functions_command(), info_module_var_func_command_completer(), and info_module_variables_command().
|
inlinestatic |
Definition at line 4424 of file symtab.c.
References info_sources_option_defs.
Referenced by info_sources_command(), and info_sources_command_completer().
|
static |
Definition at line 5272 of file symtab.c.
References info_types_options_defs.
Referenced by info_modules_command(), info_types_command(), and info_types_command_completer().
|
static |
Definition at line 5192 of file symtab.c.
References info_vars_funcs_options_defs.
Referenced by info_functions_command(), info_variables_command(), and info_vars_funcs_command_completer().
completion_list make_source_files_completion_list | ( | const char * | text, |
const char * | word ) |
Definition at line 6127 of file symtab.c.
References add_filename_to_list(), objfile::compunits(), current_program_space, add_partial_filename_data::filename_seen_cache, have_full_symbols(), have_partial_symbols(), add_partial_filename_data::list, map_symbol_filenames(), not_interesting_fname(), program_space::objfiles(), filename_seen_cache::seen(), add_partial_filename_data::text, add_partial_filename_data::text_len, and add_partial_filename_data::word.
Referenced by collect_explicit_location_matches(), complete_files_symbols(), and complete_source_filenames().
bool matching_obj_sections | ( | struct obj_section * | obj_first, |
struct obj_section * | obj_second ) |
Definition at line 1142 of file symtab.c.
References current_program_space, objfile::obfd, objfile::objfile(), program_space::objfiles(), objfile::separate_debug_objfile, objfile::separate_debug_objfile_backlink, and obj_section::the_bfd_section.
Referenced by find_pc_sect_compunit_symtab(), find_pc_sect_psymbol(), and lookup_minimal_symbol_by_pc_section().
const char * multiple_symbols_select_mode | ( | void | ) |
Definition at line 295 of file symtab.c.
References multiple_symbols_mode.
Referenced by decode_line_full(), and user_select_syms().
|
static |
Definition at line 6067 of file symtab.c.
Referenced by make_source_files_completion_list(), and add_partial_filename_data::operator()().
|
static |
Definition at line 4088 of file symtab.c.
References CP_OPERATOR_LEN, CP_OPERATOR_STR, and symtab_and_line::end.
Referenced by global_symbol_searcher::search().
|
static |
Definition at line 5053 of file symtab.c.
References address_style, objfile::arch(), function_name_style, gdb_printf(), gdbarch_addr_bit(), bound_minimal_symbol::minsym, bound_minimal_symbol::objfile, general_symbol_info::print_name(), cli_style_option::style(), styled_string(), minimal_symbol::text_p(), and bound_minimal_symbol::value_address().
Referenced by symtab_symbol_info().
|
static |
Definition at line 5021 of file symtab.c.
References file_name_style, gdb_printf(), gdb_puts(), symbol::line(), cli_style_option::style(), styled_string(), symbol_to_info_string(), symbol::symtab, and symtab_to_filename_for_display().
Referenced by info_module_subcommand(), rbreak_command(), and symtab_symbol_info().
bool producer_is_realview | ( | const char * | producer | ) |
Definition at line 6350 of file symtab.c.
Referenced by dwarf2_frame_find_quirks(), prototyped_function_p(), and read_structure_type().
|
static |
Definition at line 5334 of file symtab.c.
References break_command(), global_symbol_searcher::filenames, symtab::fullname, FUNCTIONS_DOMAIN, gdb_printf(), print_symbol_info(), global_symbol_searcher::search(), and symtab_to_fullname().
int register_symbol_block_impl | ( | enum address_class | aclass, |
const struct symbol_block_ops * | ops ) |
Definition at line 6428 of file symtab.c.
References symbol_impl::aclass, symbol_block_ops::find_frame_base_location, symbol_block_ops::get_block_value, LOC_BLOCK, MAX_SYMBOL_IMPLS, next_aclass_value, and symbol_impl::ops_block.
int register_symbol_computed_impl | ( | enum address_class | aclass, |
const struct symbol_computed_ops * | ops ) |
Definition at line 6402 of file symtab.c.
References symbol_impl::aclass, symbol_computed_ops::describe_location, symbol_computed_ops::get_symbol_read_needs, LOC_COMPUTED, MAX_SYMBOL_IMPLS, next_aclass_value, symbol_impl::ops_computed, symbol_computed_ops::read_variable, and symbol_computed_ops::tracepoint_var_ref.
int register_symbol_register_impl | ( | enum address_class | aclass, |
const struct symbol_register_ops * | ops ) |
Definition at line 6452 of file symtab.c.
References symbol_impl::aclass, LOC_REGISTER, LOC_REGPARM_ADDR, MAX_SYMBOL_IMPLS, next_aclass_value, and symbol_impl::ops_register.
|
static |
Definition at line 1311 of file symtab.c.
References destroy_block_symbol_cache(), symbol_cache::global_symbols, block_symbol_cache::size, symbol_cache::static_symbols, symbol_cache_byte_size(), and xcalloc().
Referenced by get_symbol_cache(), and set_symbol_cache_size().
const char * search_domain_name | ( | enum search_domain | e | ) |
Definition at line 320 of file symtab.c.
References ALL_DOMAIN, FUNCTIONS_DOMAIN, MODULES_DOMAIN, TYPES_DOMAIN, and VARIABLES_DOMAIN.
Referenced by objfile::expand_symtabs_matching().
std::vector< module_symbol_search > search_module_symbols | ( | const char * | module_regexp, |
const char * | regexp, | ||
const char * | type_regexp, | ||
search_domain | kind ) |
Definition at line 6558 of file symtab.c.
References MODULES_DOMAIN, prefix, QUIT, global_symbol_searcher::search(), global_symbol_searcher::set_exclude_minsyms(), and global_symbol_searcher::set_symbol_type_regexp().
Referenced by info_module_subcommand(), and mi_info_module_functions_or_variables().
unsigned int search_name_hash | ( | enum language | language, |
const char * | search_name ) |
Definition at line 1928 of file symtab.c.
References language_def(), general_symbol_info::search_name(), and language_defn::search_name_hash().
Referenced by insert_symbol_hashed(), and minimal_symbol_reader::install().
|
static |
Definition at line 6206 of file symtab.c.
References get_main_info(), language_unknown, and name.
Referenced by find_main_name(), and symtab_all_objfiles_removed().
|
static |
Definition at line 1363 of file symtab.c.
References registry< T >::get(), program_spaces, resize_symbol_cache(), and symbol_cache_key.
Referenced by set_symbol_cache_size_handler().
|
static |
Definition at line 1378 of file symtab.c.
References MAX_SYMBOL_CACHE_SIZE, new_symbol_cache_size, set_symbol_cache_size(), and symbol_cache_size.
void skip_prologue_sal | ( | struct symtab_and_line * | sal | ) |
Definition at line 3764 of file symtab.c.
References objfile::arch(), block_for_pc_sect(), symtab::compunit(), block::end(), symtab_and_line::end, block::entry_pc(), symtab_and_line::explicit_line, symtab_and_line::explicit_pc, find_pc_sect_function(), find_pc_sect_line(), block::function(), block::function_block(), gdbarch_deprecated_function_start_offset(), gdbarch_skip_entrypoint(), gdbarch_skip_entrypoint_p(), gdbarch_skip_main_prologue(), gdbarch_skip_main_prologue_p(), gdbarch_skip_prologue_noexcept(), ignore_prologue_end_flag, block::inlined_p(), symtab::language(), language_asm, symbol::line(), symtab_and_line::line, general_symbol_info::linkage_name(), compunit_symtab::locations_valid(), lookup_minimal_symbol_by_pc_section(), bound_minimal_symbol::minsym, name, general_symbol_info::obj_section(), bound_minimal_symbol::objfile, symbol::objfile(), objfile::objfile(), overlay_mapped_address(), overlay_unmapped_address(), symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, section_is_mapped(), section_is_overlay(), skip_prologue_using_lineinfo(), skip_prologue_using_linetable(), strcmp_iw(), block::superblock(), switch_to_program_space_and_thread(), symbol::symtab, symtab_and_line::symtab, bound_minimal_symbol::value_address(), and symbol::value_block().
Referenced by create_sals_line_offset(), find_function_start_sal_1(), and resolve_sal_pc().
|
static |
Definition at line 3673 of file symtab.c.
References symtab::compunit(), find_pc_partial_function(), linetable::item, linetable_entry::line, symtab::linetable(), linetable::nitems, compunit_symtab::objfile(), and linetable_entry::pc().
Referenced by skip_prologue_sal().
|
static |
Definition at line 3718 of file symtab.c.
References symtab::compunit(), find_pc_line(), find_pc_partial_function(), linetable::item, symtab::language(), language_asm, symtab::linetable(), linetable::nitems, compunit_symtab::objfile(), symtab_and_line::symtab, and objfile::text_section_offset().
Referenced by skip_prologue_sal().
CORE_ADDR skip_prologue_using_sal | ( | struct gdbarch * | gdbarch, |
CORE_ADDR | func_addr ) |
Definition at line 3963 of file symtab.c.
References block_for_pc(), symtab::compunit(), symtab_and_line::end, find_pc_line(), find_pc_partial_function(), block::function(), gdbarch_deprecated_function_start_offset(), block::inlined_p(), linetable::item, symtab::language(), language_asm, linetable_entry::line, symtab_and_line::line, symtab::linetable(), linetable::nitems, compunit_symtab::objfile(), linetable_entry::pc(), symtab_and_line::pc, block::superblock(), and symtab_and_line::symtab.
Referenced by aarch64_skip_prologue(), amd64_skip_prologue(), amd64_windows_skip_prologue(), arc_skip_prologue(), arm_skip_prologue(), avr_skip_prologue(), csky_skip_prologue(), frv_analyze_prologue(), ft32_skip_prologue(), i386_skip_prologue(), lm32_skip_prologue(), loongarch_skip_prologue(), m32c_skip_prologue(), mips_skip_prologue(), moxie_skip_prologue(), nds32_skip_prologue(), nios2_skip_prologue(), or1k_skip_prologue(), riscv_scan_prologue(), riscv_skip_prologue(), rs6000_skip_prologue(), s12z_skip_prologue(), s390_skip_prologue(), sh_skip_prologue(), sparc32_skip_prologue(), tic6x_skip_prologue(), tilegx_skip_prologue(), and z80_skip_prologue().
|
static |
|
static |
Definition at line 187 of file symtab.c.
References symbol_cache_slot::name, symbol_cache_slot::not_found, symbol_cache_slot::state, SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, symbol_cache_slot::value, and xfree().
Referenced by destroy_block_symbol_cache(), symbol_cache_flush(), symbol_cache_mark_found(), and symbol_cache_mark_not_found().
|
static |
Definition at line 1549 of file symtab.c.
References symbol_cache_slot::domain, symbol::domain(), domain_name(), symbol_cache_slot::found, gdb_printf(), symbol_cache::global_symbols, symbol_cache_slot::name, symbol_cache_slot::not_found, symbol_cache_slot::objfile_context, general_symbol_info::print_name(), QUIT, block_symbol_cache::size, symbol_cache_slot::state, symbol_cache::static_symbols, block_symbol::symbol, SYMBOL_SLOT_FOUND, SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, block_symbol_cache::symbols, and symbol_cache_slot::value.
Referenced by maintenance_print_symbol_cache().
|
static |
Definition at line 1504 of file symtab.c.
References block_symbol_cache::collisions, registry< T >::get(), symbol_cache::global_symbols, block_symbol_cache::hits, block_symbol_cache::misses, block_symbol_cache::size, symbol_cache::static_symbols, symbol_cache_clear_slot(), symbol_cache_key, symbol_cache_size, and block_symbol_cache::symbols.
Referenced by maintenance_flush_symbol_cache(), symtab_all_objfiles_removed(), symtab_free_objfile_observer(), and symtab_new_objfile_observer().
|
static |
Definition at line 1404 of file symtab.c.
References symbol_cache_slot::domain, domain_name(), eq_symbol_entry(), symbol_cache_slot::found, GLOBAL_BLOCK, hash_symbol_entry(), block_symbol_cache::hits, block_symbol_cache::misses, name, symbol_cache_slot::objfile_context, block_symbol_cache::size, symbol_cache_slot::state, symbol_lookup_debug_printf, SYMBOL_LOOKUP_FAILED, SYMBOL_SLOT_NOT_FOUND, block_symbol_cache::symbols, and symbol_cache_slot::value.
Referenced by lookup_global_or_static_symbol().
|
static |
Definition at line 1459 of file symtab.c.
References block_symbol::block, block_symbol_cache::collisions, symbol_cache_slot::found, symbol_cache_slot::objfile_context, symbol_cache_slot::state, block_symbol::symbol, symbol_cache_clear_slot(), SYMBOL_SLOT_FOUND, SYMBOL_SLOT_UNUSED, and symbol_cache_slot::value.
Referenced by lookup_global_or_static_symbol().
|
static |
Definition at line 1483 of file symtab.c.
References block_symbol_cache::collisions, symbol_cache_slot::domain, name, symbol_cache_slot::name, symbol_cache_slot::not_found, symbol_cache_slot::objfile_context, symbol_cache_slot::state, symbol_cache_clear_slot(), SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, and symbol_cache_slot::value.
Referenced by lookup_global_or_static_symbol().
|
static |
Definition at line 1640 of file symtab.c.
References block_symbol_cache::collisions, gdb_printf(), symbol_cache::global_symbols, block_symbol_cache::hits, block_symbol_cache::misses, QUIT, block_symbol_cache::size, and symbol_cache::static_symbols.
Referenced by maintenance_print_symbol_cache_statistics().
gdb::unique_xmalloc_ptr< char > symbol_find_demangled_name | ( | struct general_symbol_info * | gsymbol, |
const char * | mangled ) |
Definition at line 902 of file symtab.c.
References demangled_name_entry::demangled, general_symbol_info::language(), language_def(), language_unknown, general_symbol_info::m_language, nr_languages, and language_defn::sniff_from_mangled_name().
Referenced by general_symbol_info::compute_and_set_names(), and minimal_symbol_reader::install().
gdb::array_view< const struct symbol_impl > symbol_impls | ( | symbol_impl | ) |
bool symbol_is_function_or_method | ( | minimal_symbol * | msymbol | ) |
Definition at line 5653 of file symtab.c.
References mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, and minimal_symbol::type().
bool symbol_is_function_or_method | ( | symbol * | sym | ) |
Definition at line 5638 of file symtab.c.
References type::code(), and symbol::type().
Referenced by completion_skip_symbol().
bool symbol_matches_domain | ( | enum language | symbol_language, |
domain_enum | symbol_domain, | ||
domain_enum | domain ) |
Definition at line 2649 of file symtab.c.
References language_ada, language_cplus, language_d, language_rust, STRUCT_DOMAIN, and VAR_DOMAIN.
Referenced by eq_symbol_entry(), lookup_partial_symbol(), match_partial_symbol(), symbol::matches(), and recursively_search_psymtabs().
bool symbol_matches_search_name | ( | const struct general_symbol_info * | gsymbol, |
const lookup_name_info & | name ) |
Definition at line 1127 of file symtab.c.
References language_defn::get_symbol_name_matcher(), general_symbol_info::language(), language_def(), name, and general_symbol_info::search_name().
Referenced by eq_symbol_entry(), get_out_value_type(), and lookup_partial_symbol().
std::string symbol_to_info_string | ( | struct symbol * | sym, |
int | block, | ||
enum search_domain | kind ) |
Definition at line 4959 of file symtab.c.
References symbol::aclass(), type::code(), symbol::domain(), GLOBAL_BLOCK, LOC_TYPEDEF, MODULES_DOMAIN, general_symbol_info::print_name(), STATIC_BLOCK, string_file::string(), STRUCT_DOMAIN, symbol::type(), type_print(), typedef_print(), and TYPES_DOMAIN.
Referenced by output_debug_symbol(), and print_symbol_info().
|
static |
Definition at line 1704 of file symtab.c.
References language_unknown, set_main_name(), and symbol_cache_flush().
|
static |
Definition at line 1715 of file symtab.c.
References objfile::pspace, and symbol_cache_flush().
|
static |
Definition at line 1696 of file symtab.c.
References objfile::pspace, and symbol_cache_flush().
|
static |
Definition at line 5081 of file symtab.c.
References ALL_DOMAIN, gdb_printf(), print_msymbol_info(), print_symbol_info(), QUIT, global_symbol_searcher::search(), global_symbol_searcher::set_exclude_minsyms(), global_symbol_searcher::set_symbol_type_regexp(), and symtab_to_filename_for_display().
Referenced by info_functions_command(), info_modules_command(), info_types_command(), and info_variables_command().
bool treg_matches_sym_type_name | ( | const compiled_regex & | treg, |
const struct symbol * | sym ) |
Definition at line 4599 of file symtab.c.
References general_symbol_info::natural_name(), symbol_lookup_debug_printf_v, symbol::type(), and type_to_string().
Referenced by global_symbol_searcher::add_matching_symbols(), and print_variable_and_value_data::operator()().
bool basenames_may_differ = false |
Definition at line 270 of file symtab.c.
Referenced by global_symbol_searcher::add_matching_symbols(), skiplist_entry::do_skip_file_p(), skiplist_entry::do_skip_gfile_p(), dw_expand_symtabs_matching_file_matcher(), psymbol_functions::expand_symtabs_matching(), and iterate_over_some_symtabs().
|
static |
Definition at line 290 of file symtab.c.
Referenced by skip_prologue_sal().
|
static |
|
static |
Definition at line 6760 of file symtab.c.
Referenced by make_info_modules_var_func_options_def_group().
|
static |
Definition at line 4404 of file symtab.c.
Referenced by make_info_sources_options_def_group().
|
static |
Definition at line 5260 of file symtab.c.
Referenced by make_info_types_options_def_group().
|
static |
Definition at line 5165 of file symtab.c.
Referenced by make_info_vars_funcs_options_def_group().
|
static |
Definition at line 121 of file symtab.c.
Referenced by get_main_info().
const char multiple_symbols_all[] = "all" |
Definition at line 277 of file symtab.c.
Referenced by decode_line_2(), decode_line_full(), code_breakpoint::decode_location_spec(), and user_select_syms().
const char multiple_symbols_ask[] = "ask" |
Definition at line 276 of file symtab.c.
Referenced by decode_line_full().
const char multiple_symbols_cancel[] = "cancel" |
Definition at line 278 of file symtab.c.
Referenced by decode_line_2(), decode_line_full(), and user_select_syms().
|
static |
Definition at line 286 of file symtab.c.
Referenced by multiple_symbols_select_mode().
|
static |
|
static |
Definition at line 260 of file symtab.c.
Referenced by set_symbol_cache_size_handler().
|
static |
Definition at line 6375 of file symtab.c.
Referenced by register_symbol_block_impl(), register_symbol_computed_impl(), and register_symbol_register_impl().
|
static |
Definition at line 251 of file symtab.c.
Referenced by get_symbol_cache(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), set_symbol_cache_size(), and symbol_cache_flush().
|
static |
Definition at line 265 of file symtab.c.
Referenced by get_symbol_cache(), set_symbol_cache_size_handler(), and symbol_cache_flush().
|
static |
unsigned int symbol_lookup_debug = 0 |
Definition at line 257 of file symtab.c.
Referenced by cp_lookup_nested_symbol(), lookup_minimal_symbol(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_static_block(), symbol_lookup_debug_enabled(), and symbol_lookup_debug_enabled_v().
unsigned int symtab_create_debug = 0 |
Definition at line 254 of file symtab.c.
Referenced by allocate_symtab(), and partial_symtab::partial_symtab().