GDB (xrefs)
|
#include "defs.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 "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 "hashtab.h"
#include "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 "observer.h"
#include "solist.h"
#include "macrotab.h"
#include "macroscope.h"
#include "parser-defs.h"
#include "completer.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 | global_sym_lookup_data |
struct | filename_seen_cache |
struct | output_source_filename_data |
struct | search_symbols_data |
struct | add_name_data |
struct | add_partial_filename_data |
Macros | |
#define | DEFAULT_SYMBOL_CACHE_SIZE 1021 |
#define | MAX_SYMBOL_CACHE_SIZE (1024*1024) |
#define | SYMBOL_LOOKUP_FAILED ((struct symbol *) 1) |
#define | JAVA_PREFIX "##JAVA$$" |
#define | JAVA_PREFIX_LEN 8 |
#define | INITIAL_FILENAME_SEEN_CACHE_SIZE 100 |
#define | COMPLETION_LIST_ADD_SYMBOL(symbol, sym_text, len, text, word) |
#define | MCOMPLETION_LIST_ADD_SYMBOL(symbol, sym_text, len, text, word) |
#define | MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 10) |
Enumerations | |
enum | symbol_cache_slot_state { SYMBOL_SLOT_UNUSED, SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_FOUND } |
Variables | |
initialize_file_ftype | _initialize_symtab |
static const struct program_space_data * | main_progspace_key |
static const struct program_space_data * | symbol_cache_key |
unsigned int | symtab_create_debug = 0 |
unsigned int | symbol_lookup_debug = 0 |
static unsigned int | new_symbol_cache_size = DEFAULT_SYMBOL_CACHE_SIZE |
static unsigned int | symbol_cache_size = DEFAULT_SYMBOL_CACHE_SIZE |
int | basenames_may_differ = 0 |
const char | multiple_symbols_ask [] = "ask" |
const char | multiple_symbols_all [] = "all" |
const char | multiple_symbols_cancel [] = "cancel" |
static const char *const | multiple_symbols_modes [] |
static const char * | multiple_symbols_mode = multiple_symbols_all |
const struct block * | block_found |
static int | next_aclass_value = LOC_FINAL_VALUE |
static struct symbol_impl | symbol_impl [MAX_SYMBOL_IMPLS] |
const struct symbol_impl * | symbol_impls = &symbol_impl[0] |
Referenced by add_symtab_completions(), and default_make_symbol_completion_list_break_on_1().
#define INITIAL_FILENAME_SEEN_CACHE_SIZE 100 |
Definition at line 4124 of file symtab.c.
Referenced by create_filename_seen_cache().
#define JAVA_PREFIX "##JAVA$$" |
Definition at line 847 of file symtab.c.
Referenced by symbol_set_names().
#define JAVA_PREFIX_LEN 8 |
Definition at line 848 of file symtab.c.
Referenced by symbol_set_names().
#define MAX_SYMBOL_CACHE_SIZE (1024*1024) |
Definition at line 120 of file symtab.c.
Referenced by set_symbol_cache_size_handler().
#define MAX_SYMBOL_IMPLS (LOC_FINAL_VALUE + 10) |
Definition at line 6082 of file symtab.c.
Referenced by register_symbol_block_impl(), register_symbol_computed_impl(), and register_symbol_register_impl().
Referenced by default_make_symbol_completion_list_break_on_1().
#define SYMBOL_LOOKUP_FAILED ((struct symbol *) 1) |
Definition at line 124 of file symtab.c.
Referenced by lookup_global_symbol(), lookup_static_symbol(), and symbol_cache_lookup().
void _initialize_symtab | ( | void | ) |
Definition at line 6268 of file symtab.c.
References _, add_cmd(), add_com(), add_info(), add_setshow_boolean_cmd(), add_setshow_enum_cmd(), add_setshow_zuinteger_cmd(), basenames_may_differ, class_breakpoint, class_info, class_maintenance, class_obscure, dbx_commands, functions_info(), initialize_ordinary_address_classes(), main_info_cleanup(), main_progspace_key, maintenance_flush_symbol_cache(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), maintenance_set_cmdlist, maintenance_show_cmdlist, maintenancelist, maintenanceprintlist, multiple_symbols_mode, multiple_symbols_modes, new_symbol_cache_size, no_class, observer_attach_executable_changed(), observer_attach_free_objfile(), observer_attach_new_objfile(), rbreak_command(), set_symbol_cache_size_handler(), setdebuglist, setlist, showdebuglist, showlist, sources_info(), symbol_cache_cleanup(), symbol_cache_key, symbol_lookup_debug, symtab_create_debug, symtab_free_objfile_observer(), symtab_new_objfile_observer(), symtab_observer_executable_changed(), types_info(), and variables_info().
|
static |
Definition at line 5729 of file symtab.c.
References VEC_safe_push, word, and xmalloc().
Referenced by maybe_add_partial_symtab_filename().
|
static |
Definition at line 5254 of file symtab.c.
References add_name_data::sym_text, add_name_data::sym_text_len, add_name_data::text, and add_name_data::word.
Referenced by default_make_symbol_completion_list_break_on_1().
|
static |
Definition at line 5278 of file symtab.c.
References ALL_BLOCK_SYMBOLS, BLOCKVECTOR_BLOCK, COMPLETION_LIST_ADD_SYMBOL, COMPUNIT_BLOCKVECTOR, GLOBAL_BLOCK, QUIT, STATIC_BLOCK, STRUCT_DOMAIN, SYMBOL_DOMAIN, SYMBOL_TYPE, TYPE_CODE, and TYPE_CODE_UNDEF.
Referenced by default_make_symbol_completion_list_break_on_1(), and symtab_expansion_callback().
Definition at line 6204 of file symtab.c.
References initialize_objfile_symbol_1(), objfile::objfile_obstack, and OBSTACK_ZALLOC.
Referenced by add_class_symbol(), coff_read_enum_type(), common_block_end(), define_symbol(), finalize_symtab(), fixup_go_packaging(), new_symbol(), new_symbol_full(), parse_symbol(), patch_block_stabs(), process_coff_symbol(), and read_enum_type().
struct template_symbol* allocate_template_symbol | ( | struct objfile * | objfile | ) |
Definition at line 6218 of file symtab.c.
References template_symbol::base, initialize_objfile_symbol_1(), objfile::objfile_obstack, and OBSTACK_ZALLOC.
Referenced by read_func_scope().
struct symbol* basic_lookup_symbol_nonlocal | ( | const struct language_defn * | langdef, |
const char * | name, | ||
const struct block * | block, | ||
const domain_enum | domain | ||
) |
Definition at line 2481 of file symtab.c.
References block_gdbarch(), language_lookup_primitive_type_as_symbol(), lookup_global_symbol(), lookup_symbol_in_static_block(), target_gdbarch(), and VAR_DOMAIN.
Definition at line 2851 of file symtab.c.
References ALL_OBJFILES, basic_lookup_transparent_type_1(), basic_lookup_transparent_type_quick(), GLOBAL_BLOCK, and STATIC_BLOCK.
Referenced by cp_lookup_transparent_type(), and cp_lookup_transparent_type_loop().
|
static |
Definition at line 2820 of file symtab.c.
References ALL_OBJFILE_COMPUNITS, block_find_non_opaque_type(), block_find_symbol(), BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, gdb_assert, STRUCT_DOMAIN, SYMBOL_TYPE, and TYPE_IS_OPAQUE.
Referenced by basic_lookup_transparent_type().
|
static |
Definition at line 2790 of file symtab.c.
References block_find_non_opaque_type(), block_find_symbol(), BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, error_in_psymtab_expansion(), gdb_assert, quick_symbol_functions::lookup_symbol, sym_fns::qf, objfile::sf, STRUCT_DOMAIN, SYMBOL_TYPE, and TYPE_IS_OPAQUE.
Referenced by basic_lookup_transparent_type().
|
static |
Definition at line 2027 of file symtab.c.
References CHECK_TYPEDEF, field_of_this_result::field, field_of_this_result::fn_field, strcmp_iw(), type, field_of_this_result::type, TYPE_BASECLASS, TYPE_FIELD, TYPE_FIELD_NAME, TYPE_FN_FIELDLIST, TYPE_FN_FIELDLIST_NAME, TYPE_N_BASECLASSES, TYPE_NFIELDS, and TYPE_NFN_FIELDS.
Referenced by lookup_symbol_aux().
|
static |
Definition at line 4145 of file symtab.c.
References filename_seen_cache::tab.
Referenced by sources_info().
Definition at line 313 of file symtab.c.
References len.
Referenced by dw2_map_symtabs_matching_filename(), file_matches(), function_name_is_marked_for_skip(), iterate_over_some_symtabs(), objfpy_lookup_objfile_by_name(), and psym_map_symtabs_matching_filename().
Definition at line 4336 of file symtab.c.
References symbol_search::block, symtab::filename, symbol_search::symbol, SYMBOL_PRINT_NAME, and symbol_symtab().
Referenced by sort_search_symbols_remove_dups().
|
static |
Definition at line 4984 of file symtab.c.
References case_sensitive_on, and int.
Referenced by symbol_completion_matcher(), and VEC().
|
static |
Definition at line 5217 of file symtab.c.
References LOC_TYPEDEF, SYMBOL_CLASS, SYMBOL_TYPE, TYPE_CODE, TYPE_CODE_STRUCT, TYPE_CODE_UNION, TYPE_FIELD_NAME, TYPE_N_BASECLASSES, TYPE_NFIELDS, and word.
Referenced by default_make_symbol_completion_list_break_on_1().
|
static |
Definition at line 5114 of file symtab.c.
References MSYMBOL_NATURAL_NAME, selector, and xrealloc().
Referenced by default_make_symbol_completion_list_break_on_1().
enum language compunit_language | ( | const struct compunit_symtab * | cust | ) |
Definition at line 298 of file symtab.c.
References compunit_primary_filetab(), and SYMTAB_LANGUAGE.
Referenced by get_frame_language(), handle_step_into_function(), handle_step_into_function_backward(), and select_frame().
struct symtab* compunit_primary_filetab | ( | const struct compunit_symtab * | cust | ) |
Definition at line 287 of file symtab.c.
References COMPUNIT_FILETABS, and gdb_assert.
Referenced by bkscm_print_block_syms_progress_smob(), compunit_language(), debug_qf_find_pc_sect_compunit_symtab(), debug_qf_lookup_symbol(), dw2_find_last_source_symtab(), error_in_psymtab_expansion(), maintenance_check_symtabs(), and psym_find_last_source_symtab().
|
static |
Definition at line 690 of file symtab.c.
References objfile_per_bfd_storage::demangled_names_hash, eq_demangled_name_entry(), hash_demangled_name_entry(), objfile::per_bfd, xcalloc(), and xfree().
Referenced by symbol_set_names().
|
static |
Definition at line 4130 of file symtab.c.
References INITIAL_FILENAME_SEEN_CACHE_SIZE, filename_seen_cache::tab, xcalloc(), and xfree().
Referenced by sources_info().
|
static |
Definition at line 5320 of file symtab.c.
References add_macro_name(), add_symtab_completions(), ALL_BLOCK_SYMBOLS, ALL_COMPUNITS, ALL_DOMAIN, ALL_MSYMBOLS, BLOCK_FUNCTION, block_global_block(), block_inlined_p(), block_static_block(), BLOCK_SUPERBLOCK, code, add_name_data::code, completion_list_add_fields(), COMPLETION_LIST_ADD_SYMBOL, completion_list_objc_symbol(), current_language, default_macro_scope(), do_cleanups(), expand_symtabs_matching(), macro_scope::file, gdb_assert, get_selected_block(), language_defn::la_language, language_defn::la_macro_expansion, language_cplus, language_fortran, language_java, macro_scope::line, macro_expansion_c, macro_for_each(), macro_for_each_in_scope(), macro_user_macros, make_cleanup_free_completion_tracker(), MCOMPLETION_LIST_ADD_SYMBOL, new_completion_tracker(), QUIT, STRUCT_DOMAIN, add_name_data::sym_text, add_name_data::sym_text_len, symbol_completion_matcher(), SYMBOL_DOMAIN, SYMBOL_TYPE, symtab_expansion_callback(), add_name_data::text, TYPE_CODE, TYPE_CODE_UNDEF, word, add_name_data::word, and xfree().
|
static |
Definition at line 4154 of file symtab.c.
References filename_seen_cache::tab, and xfree().
Referenced by sources_info().
struct cleanup* demangle_for_lookup | ( | const char * | name, |
enum language | lang, | ||
const char ** | result_name | ||
) |
Definition at line 1872 of file symtab.c.
References cp_canonicalize_string(), d_demangle(), gdb_demangle(), go_demangle(), language_cplus, language_d, language_go, language_java, make_cleanup(), name, null_cleanup(), and xfree().
Referenced by find_linespec_symbols(), lookup_symbol_in_language(), and lookup_symbol_in_objfile_from_linkage_name().
|
static |
Definition at line 4880 of file symtab.c.
References end_rbreak_breakpoints().
Referenced by rbreak_command().
|
static |
Definition at line 5024 of file symtab.c.
References free_completion_list().
|
static |
Definition at line 4319 of file symtab.c.
References free_search_symbols().
Referenced by make_cleanup_free_search_symbols().
const char* domain_name | ( | domain_enum | e | ) |
Definition at line 255 of file symtab.c.
References COMMON_BLOCK_DOMAIN, gdb_assert_not_reached, 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(), debug_qf_lookup_symbol(), debug_qf_map_matching_symbols(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_objfile(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_in_static_block(), lookup_symbol_via_quick_fns(), symbol_cache_dump(), and symbol_cache_lookup().
Definition at line 677 of file symtab.c.
References demangled_name_entry::mangled.
Referenced by create_demangled_names_hash().
|
static |
Definition at line 1191 of file symtab.c.
References symbol_cache_slot::found, symbol_cache_slot::not_found, symbol_cache_slot::objfile_context, symbol_cache_slot::state, strcmp_iw(), SYMBOL_DOMAIN, SYMBOL_LANGUAGE, symbol_matches_domain(), SYMBOL_SEARCH_NAME, SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, and symbol_cache_slot::value.
Referenced by symbol_cache_lookup().
|
static |
Definition at line 2411 of file symtab.c.
References _, compunit_primary_filetab(), error(), GLOBAL_BLOCK, and symtab_to_filename_for_display().
Referenced by basic_lookup_transparent_type_quick(), and lookup_symbol_via_quick_fns().
void expand_symtab_containing_pc | ( | CORE_ADDR | pc, |
struct obj_section * | section | ||
) |
Definition at line 1138 of file symtab.c.
References ALL_OBJFILES, quick_symbol_functions::find_pc_sect_compunit_symtab, lookup_minimal_symbol_by_pc_section(), mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, MSYMBOL_TYPE, sym_fns::qf, and objfile::sf.
Referenced by backtrace_command_1().
|
static |
Definition at line 4284 of file symtab.c.
References compare_filenames_for_search().
Referenced by search_symbols(), and search_symbols_file_matches().
|
static |
Definition at line 4170 of file symtab.c.
References filename_seen_cache::tab.
Referenced by maybe_add_partial_symtab_filename(), and output_source_filename().
struct symtab_and_line find_function_start_sal | ( | struct symbol * | sym, |
int | funfirstline | ||
) |
Definition at line 3613 of file symtab.c.
References BLOCK_START, COMPUNIT_LOCATIONS_VALID, current_program_space, find_pc_sect_line(), fixup_symbol_section(), init_sal(), language_asm, symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, skip_prologue_sal(), SYMBOL_BLOCK_VALUE, SYMBOL_OBJ_SECTION, symbol_objfile(), symtab_and_line::symtab, SYMTAB_COMPUNIT, and SYMTAB_LANGUAGE.
Referenced by ada_exception_sal(), spu_catch_start(), symbol_to_sal(), and user_select_syms().
|
static |
Definition at line 3551 of file symtab.c.
References linetable::item, len, linetable_entry::line, and linetable::nitems.
Referenced by find_line_symtab(), and VEC().
Definition at line 3484 of file symtab.c.
References find_line_symtab(), linetable::item, linetable_entry::pc, and SYMTAB_LINETABLE.
Referenced by extract_display_start_addr(), find_line_pc_range(), make_visible_with_new_height(), mi_cmd_disassemble(), resolve_sal_pc(), tui_update_source_windows_with_line(), and update_static_tracepoint().
int find_line_pc_range | ( | struct symtab_and_line | sal, |
CORE_ADDR * | startptr, | ||
CORE_ADDR * | endptr | ||
) |
Definition at line 3511 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(), line_info(), mi_cmd_trace_find(), and trace_find_line_command().
struct symtab* find_line_symtab | ( | struct symtab * | symtab, |
int | line, | ||
int * | index, | ||
int * | exact_match | ||
) |
Definition at line 3349 of file symtab.c.
References ALL_FILETABS, ALL_OBJFILES, quick_symbol_functions::expand_symtabs_with_fullname, symtab::filename, find_line_common(), linetable::item, linetable_entry::line, sym_fns::qf, objfile::sf, SYMTAB_LINETABLE, and symtab_to_fullname().
Referenced by decode_digits_list_mode(), and find_line_pc().
|
static |
Definition at line 5944 of file symtab.c.
References ada_main_name(), ALL_OBJFILES, d_main_name(), go_main_name(), language_ada, language_d, language_go, objfile_per_bfd_storage::language_of_main, language_pascal, language_unknown, objfile_per_bfd_storage::name_of_main, pascal_main_name(), objfile::per_bfd, and set_main_name().
Referenced by main_language(), and main_name().
struct compunit_symtab* find_pc_compunit_symtab | ( | CORE_ADDR | pc | ) |
Definition at line 3051 of file symtab.c.
References find_pc_mapped_section(), and find_pc_sect_compunit_symtab().
Referenced by amd64_skip_prologue(), amd64_stack_frame_destroyed_p(), arm_skip_prologue(), call_site_for_pc(), dwarf2_frame_find_quirks(), gdbpy_block_for_pc(), gdbscm_lookup_block(), get_frame_language(), get_selected_pc_producer_options(), handle_step_into_function(), handle_step_into_function_backward(), i386_skip_prologue(), i386_stack_frame_destroyed_p(), search_symbols(), and select_frame().
struct symtab_and_line find_pc_line | ( | CORE_ADDR | pc, |
int | notcurrent | ||
) |
Definition at line 3315 of file symtab.c.
References find_pc_overlay(), find_pc_sect_line(), overlay_mapped_address(), symtab_and_line::pc, pc_in_unmapped_range(), and symtab_and_line::section.
Referenced by aarch64_scan_prologue(), after_prologue(), alpha_after_prologue(), arm_linux_copy_svc(), btrace_compute_src_line_range(), c_parse(), call0_analyze_prologue(), convert_linespec_to_sals(), cris_skip_prologue(), decode_static_tracepoint_spec(), default_macro_scope(), do_mixed_source_and_assembly(), elf_gnu_ifunc_resolver_return_stop(), 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(), gdbpy_find_pc_line(), 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(), m32r_skip_prologue(), m68hc11_skip_prologue(), m88k_skip_prologue(), microblaze_skip_prologue(), moxie_skip_prologue(), mt_skip_prologue(), parse_breakpoint_sals(), print_one_static_tracepoint_marker(), process_event_stop_test(), refine_prologue_limit(), save_bookmark_command(), set_momentary_breakpoint_at_pc(), set_traceframe_context(), skip_prologue(), skip_prologue_using_sal(), sparc32_skip_prologue(), sparc64_skip_prologue(), trace_find_line_command(), tui_show_disassem_and_update_source(), tui_update_source_windows_with_addr(), until_break_command(), until_next_command(), update_static_tracepoint(), v850_skip_prologue(), write_macro_definitions(), xstormy16_skip_prologue(), and xtensa_skip_prologue().
Definition at line 3328 of file symtab.c.
References find_pc_line().
Referenced by gdb_disassembly(), make_visible_with_new_height(), tui_display_main(), tui_horizontal_source_scroll(), tui_refresh_frame_and_register_information(), tui_show_disassem(), and tui_vertical_source_scroll().
struct compunit_symtab* find_pc_sect_compunit_symtab | ( | CORE_ADDR | pc, |
struct obj_section * | section | ||
) |
Definition at line 2935 of file symtab.c.
References ALL_BLOCK_SYMBOLS, ALL_COMPUNITS, ALL_OBJFILES, BLOCK_END, BLOCK_START, BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, quick_symbol_functions::find_pc_sect_compunit_symtab, fixup_symbol_section(), objfile::flags, GLOBAL_BLOCK, lookup_minimal_symbol_by_pc_section(), matching_obj_sections(), mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, MSYMBOL_TYPE, OBJF_REORDERED, sym_fns::qf, objfile::sf, and SYMBOL_OBJ_SECTION.
Referenced by blockvector_for_pc_sect(), find_pc_compunit_symtab(), find_pc_sect_line(), and spu_catch_start().
struct symtab_and_line find_pc_sect_line | ( | CORE_ADDR | pc, |
struct obj_section * | section, | ||
int | notcurrent | ||
) |
Definition at line 3075 of file symtab.c.
References ALL_COMPUNIT_FILETABS, BLOCK_END, BLOCKVECTOR_BLOCK, BMSYMBOL_VALUE_ADDRESS, COMPUNIT_BLOCKVECTOR, current_program_space, symtab_and_line::end, find_pc_line(), find_pc_sect_compunit_symtab(), GLOBAL_BLOCK, init_sal(), linetable::item, len, linetable_entry::line, symtab_and_line::line, lookup_minimal_symbol_by_pc(), lookup_minimal_symbol_text(), bound_minimal_symbol::minsym, mst_solib_trampoline, MSYMBOL_LINKAGE_NAME, MSYMBOL_TYPE, linetable::nitems, linetable_entry::pc, symtab_and_line::pc, symtab_and_line::pspace, symtab_and_line::section, symtab_and_line::symtab, and SYMTAB_LINETABLE.
Referenced by add_minsym(), amd64_skip_xmm_prologue(), build_address_symbolic(), find_function_start_sal(), find_line_pc_range(), find_pc_line(), minsym_found(), and skip_prologue_sal().
void fixup_section | ( | struct general_symbol_info * | ginfo, |
CORE_ADDR | addr, | ||
struct objfile * | objfile | ||
) |
Definition at line 1728 of file symtab.c.
References ALL_OBJFILE_OSECTIONS, ANOFFSET, lookup_minimal_symbol_by_pc_name(), MSYMBOL_SECTION, general_symbol_info::name, obj_section_addr, obj_section_endaddr, offset, general_symbol_info::section, objfile::section_offsets, and objfile::sections.
Referenced by fixup_psymbol_section(), and fixup_symbol_section().
Definition at line 1809 of file symtab.c.
References BLOCK_START, fixup_section(), gdb_assert, symbol::ginfo, LOC_BLOCK, LOC_LABEL, LOC_STATIC, SYMBOL_BLOCK_VALUE, SYMBOL_CLASS, SYMBOL_OBJ_SECTION, symbol_objfile(), SYMBOL_OBJFILE_OWNED, symbol_symtab(), and SYMBOL_VALUE_ADDRESS.
Referenced by ada_add_block_symbols(), ada_lookup_encoded_symbol(), aux_add_nonlocal_symbols(), find_function_start_sal(), find_pc_sect_compunit_symtab(), jump_command(), lookup_symbol_in_block(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_via_quick_fns(), relocate_one_symbol(), resolve_sal_pc(), skip_prologue_sal(), spu_catch_start(), and var_decode_location().
Definition at line 5011 of file symtab.c.
References VEC_free, VEC_iterate, and xfree().
Referenced by do_free_completion_list().
void free_search_symbols | ( | struct symbol_search * | symbols | ) |
Definition at line 4306 of file symtab.c.
References symbol_search::next, and xfree().
Referenced by do_free_search_symbols_cleanup().
|
static |
Definition at line 1319 of file symtab.c.
References symbol_cache::global_symbols, symbol_cache::static_symbols, and xfree().
Referenced by symbol_cache_cleanup().
|
static |
Definition at line 4857 of file symtab.c.
References FUNCTIONS_DOMAIN, and symtab_symbol_info().
Referenced by _initialize_symtab().
Definition at line 504 of file symtab.c.
References field_name(), fn_field::is_const, cleanup_check::is_constructor(), is_constructor_name(), cleanup_check::is_destructor(), is_destructor_name(), is_operator_name(), fn_field::is_volatile, len, fn_field::physname, startswith(), TYPE_FN_FIELD_PHYSNAME, TYPE_FN_FIELDLIST1, TYPE_FN_FIELDLIST_NAME, type_name_no_tag(), xmalloc(), and xsnprintf().
Referenced by c_type_print_base(), check_stub_method(), and java_type_print_base().
gdb_static_assert | ( | MAX_SYMBOL_IMPLS<= | 1<< SYMBOL_ACLASS_BITS | ) |
|
static |
Definition at line 5887 of file symtab.c.
References current_program_space, main_info::language_of_main, language_unknown, and main_progspace_key.
Referenced by main_language(), main_name(), and set_main_name().
|
static |
Definition at line 1330 of file symtab.c.
References make_symbol_cache(), symbol_cache_key, and symbol_cache_size.
Referenced by lookup_global_symbol(), and lookup_static_symbol().
|
static |
Definition at line 667 of file symtab.c.
References demangled_name_entry::mangled.
Referenced by create_demangled_names_hash().
|
static |
Definition at line 1170 of file symtab.c.
References hash(), STRUCT_DOMAIN, and VAR_DOMAIN.
Referenced by symbol_cache_lookup().
void init_sal | ( | struct symtab_and_line * | sal | ) |
Definition at line 1064 of file symtab.c.
Referenced by call_function_by_hand_dummy(), clear_command(), create_breakpoint(), create_internal_breakpoint(), create_sals_line_offset(), decode_digits_ordinary(), decode_static_tracepoint_spec(), elf_gnu_ifunc_resolver_stop(), find_frame_sal(), find_function_start_sal(), find_pc_sect_line(), finish_backward(), finish_command(), gdbscm_find_pc_line(), handle_step_into_function(), init_catchpoint(), insert_hp_step_resume_breakpoint_at_frame(), insert_step_resume_breakpoint_at_caller(), line_info(), parse_breakpoint_sals(), parse_probes(), print_one_static_tracepoint_marker(), process_event_stop_test(), save_bookmark_command(), set_traceframe_context(), symbol_to_sal(), tui_update_source_window_as_is(), and update_static_tracepoint().
void initialize_objfile_symbol | ( | struct symbol * | sym | ) |
Definition at line 6194 of file symtab.c.
References initialize_objfile_symbol_1().
Referenced by process_xcoff_symbol().
|
static |
Definition at line 6185 of file symtab.c.
References SYMBOL_OBJFILE_OWNED, and SYMBOL_SECTION.
Referenced by allocate_symbol(), allocate_template_symbol(), and initialize_objfile_symbol().
|
static |
Definition at line 6171 of file symtab.c.
References symbol_impl::aclass, and LOC_FINAL_VALUE.
Referenced by _initialize_symtab().
int iterate_over_some_symtabs | ( | const char * | name, |
const char * | real_path, | ||
int(*)(struct symtab *symtab, void *data) | callback, | ||
void * | data, | ||
struct compunit_symtab * | first, | ||
struct compunit_symtab * | after_last | ||
) |
Definition at line 361 of file symtab.c.
References ALL_COMPUNIT_FILETABS, basenames_may_differ, compare_filenames_for_search(), symtab::filename, symtab::fullname, gdb_assert, compunit_symtab::next, and symtab_to_fullname().
Referenced by dw2_map_expand_apply(), iterate_over_symtabs(), and partial_map_expand_apply().
void iterate_over_symbols | ( | const struct block * | block, |
const char * | name, | ||
const domain_enum | domain, | ||
symbol_found_callback_ftype * | callback, | ||
void * | data | ||
) |
Definition at line 2912 of file symtab.c.
References ALL_BLOCK_SYMBOLS_WITH_NAME, SYMBOL_DOMAIN, SYMBOL_LANGUAGE, and symbol_matches_domain().
void iterate_over_symtabs | ( | const char * | name, |
int(*)(struct symtab *symtab, void *data) | callback, | ||
void * | data | ||
) |
Definition at line 426 of file symtab.c.
References ALL_OBJFILES, objfile::compunit_symtabs, do_cleanups(), gdb_assert, gdb_realpath(), iterate_over_some_symtabs(), make_cleanup(), quick_symbol_functions::map_symtabs_matching_filename, null_cleanup(), sym_fns::qf, objfile::sf, and xfree().
Referenced by lookup_symtab(), and VEC().
Definition at line 5174 of file symtab.c.
References current_language, language_defn::la_language, and language_objc.
struct symbol* lookup_global_symbol | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain | ||
) |
Definition at line 2709 of file symtab.c.
References current_program_space, symbol_cache_slot::domain, global_sym_lookup_data::domain, gdbarch_iterate_over_objfiles_in_search_order(), get_objfile_arch(), get_symbol_cache(), GLOBAL_BLOCK, lookup_objfile_from_block(), lookup_symbol_global_iterator_cb(), name, global_sym_lookup_data::name, global_sym_lookup_data::result, solib_global_lookup(), symbol_cache_lookup(), symbol_cache_mark_found(), symbol_cache_mark_not_found(), SYMBOL_LOOKUP_FAILED, and target_gdbarch().
Referenced by basic_lookup_symbol_nonlocal(), cp_basic_lookup_symbol(), cp_lookup_bare_symbol(), cp_search_static_and_baseclasses(), gdbpy_lookup_global_symbol(), gdbscm_lookup_global_symbol(), and push_module_name().
struct symbol* lookup_global_symbol_from_objfile | ( | struct objfile * | main_objfile, |
const char * | name, | ||
const domain_enum | domain | ||
) |
Definition at line 2290 of file symtab.c.
References GLOBAL_BLOCK, lookup_symbol_in_objfile(), and objfile_separate_debug_iterate().
Referenced by compile_object_load(), elf_lookup_lib_symbol(), and spu_lookup_lib_symbol().
struct symbol* lookup_language_this | ( | const struct language_defn * | lang, |
const struct block * | block | ||
) |
Definition at line 1979 of file symtab.c.
References BLOCK_FUNCTION, block_lookup_symbol(), BLOCK_SUPERBLOCK, fprintf_unfiltered(), gdb_stdlog, host_address_to_string(), language_defn::la_name, language_defn::la_name_of_this, lookup_objfile_from_block(), objfile_debug_name(), symbol_lookup_debug, SYMBOL_PRINT_NAME, and VAR_DOMAIN.
Referenced by cp_lookup_bare_symbol(), gen_expr(), lookup_symbol_aux(), and value_of_this().
|
static |
Referenced by lookup_symbol_aux().
|
static |
Definition at line 2188 of file symtab.c.
References BLOCK_FUNCTION, block_inlined_p(), block_scope(), block_static_block(), BLOCK_SUPERBLOCK, cp_lookup_symbol_imports_or_template(), language_cplus, language_fortran, and lookup_symbol_in_block().
Definition at line 2228 of file symtab.c.
References ALL_COMPUNITS, block_global_block(), BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, GLOBAL_BLOCK, and objfile::separate_debug_objfile_backlink.
Referenced by clear_dangling_display_expressions(), lookup_global_symbol(), lookup_language_this(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_static_block(), and operator_check_standard().
struct symbol* lookup_static_symbol | ( | const char * | name, |
const domain_enum | domain | ||
) |
Definition at line 2634 of file symtab.c.
References ALL_OBJFILES, current_program_space, get_symbol_cache(), lookup_symbol_in_objfile(), STATIC_BLOCK, symbol_cache_lookup(), symbol_cache_mark_found(), symbol_cache_mark_not_found(), and SYMBOL_LOOKUP_FAILED.
Referenced by cp_lookup_nested_symbol_1(), and lookup_symbol_aux().
struct 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 1967 of file symtab.c.
References current_language, language_defn::la_language, and lookup_symbol_in_language().
Referenced by address_info(), c_val_print(), check_typedef(), classify_name(), classify_packaged_name(), convert_symbol_sym(), cp_lookup_rtti_type(), d_module_from_name(), d_type_from_name(), find_function_in_inferior(), find_imps(), find_proc_desc(), frapy_read_var(), ft32_skip_prologue(), gcc_convert_symbol(), gcc_symbol_address(), gdbpy_lookup_symbol(), gdbscm_frame_read_var(), gdbscm_lookup_symbol(), gen_static_field(), get_java_object_type(), gnuv3_get_typeid_type(), insert_exception_resume_breakpoint(), inspect_type(), iterate_over_block_arg_vars(), java_lookup_class(), language_bool_type(), lex_one_token(), list_args_or_locals(), lookup_enum(), lookup_struct(), lookup_struct_typedef(), lookup_template_type(), lookup_union(), moxie_skip_prologue(), mt_skip_prologue(), package_name_p(), parse_procedure(), pascal_val_print(), print_frame_args(), push_variable(), replace_typedefs(), select_source_symtab(), set_initial_language(), skip_function_command(), value_fn_field(), value_static_field(), value_struct_elt_for_reference(), write_dollar_variable(), xstormy16_skip_prologue(), yylex(), and yyparse().
|
static |
Referenced by lookup_symbol_in_language().
|
static |
Definition at line 2071 of file symtab.c.
References _, check_field(), CHECK_TYPEDEF, domain_name(), error(), fprintf_unfiltered(), gdb_stdlog, host_address_to_string(), language_defn::la_lookup_symbol_nonlocal, language_defn::la_name_of_this, language_def(), language_str(), lookup_language_this(), lookup_local_symbol(), lookup_objfile_from_block(), lookup_static_symbol(), objfile_debug_name(), STRUCT_DOMAIN, symbol_lookup_debug, symbol::type, TYPE_CODE, TYPE_CODE_PTR, TYPE_CODE_REF, TYPE_CODE_STRUCT, TYPE_CODE_UNION, and TYPE_TARGET_TYPE.
Definition at line 2690 of file symtab.c.
References global_sym_lookup_data::domain, gdb_assert, GLOBAL_BLOCK, lookup_symbol_in_objfile(), global_sym_lookup_data::name, and global_sym_lookup_data::result.
Referenced by lookup_global_symbol().
struct symbol* lookup_symbol_in_block | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain | ||
) |
Definition at line 2254 of file symtab.c.
References block_lookup_symbol(), domain_name(), fixup_symbol_section(), fprintf_unfiltered(), gdb_stdlog, host_address_to_string(), lookup_objfile_from_block(), objfile_debug_name(), and symbol_lookup_debug.
Referenced by cp_basic_lookup_symbol(), lookup_local_symbol(), and lookup_symbol_in_static_block().
struct 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 1949 of file symtab.c.
References demangle_for_lookup(), do_cleanups(), and lookup_symbol_aux().
Referenced by ada_tasks_inferior_data_sniffer(), get_tcb_types_info(), lookup_symbol(), lookup_typename(), and standard_lookup().
|
static |
Definition at line 2588 of file symtab.c.
References domain_name(), fprintf_unfiltered(), gdb_stdlog, GLOBAL_BLOCK, host_address_to_string(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_via_quick_fns(), objfile_debug_name(), and symbol_lookup_debug.
Referenced by lookup_global_symbol_from_objfile(), lookup_static_symbol(), and lookup_symbol_global_iterator_cb().
|
static |
Definition at line 2370 of file symtab.c.
References current_language, demangle_for_lookup(), do_cleanups(), GLOBAL_BLOCK, language_defn::la_language, lookup_symbol_in_objfile_symtabs(), objfile_separate_debug_iterate(), objfile::separate_debug_objfile_backlink, and STATIC_BLOCK.
Referenced by search_symbols().
|
static |
Definition at line 2316 of file symtab.c.
References ALL_OBJFILE_COMPUNITS, block_lookup_symbol_primary(), BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, domain_name(), fixup_symbol_section(), fprintf_unfiltered(), gdb_assert, gdb_stdlog, GLOBAL_BLOCK, host_address_to_string(), objfile_debug_name(), STATIC_BLOCK, and symbol_lookup_debug.
Referenced by lookup_symbol_in_objfile(), and lookup_symbol_in_objfile_from_linkage_name().
struct symbol* lookup_symbol_in_static_block | ( | const char * | name, |
const struct block * | block, | ||
const domain_enum | domain | ||
) |
Definition at line 2549 of file symtab.c.
References block_static_block(), domain_name(), fprintf_unfiltered(), gdb_stdlog, host_address_to_string(), lookup_objfile_from_block(), lookup_symbol_in_block(), objfile_debug_name(), and symbol_lookup_debug.
Referenced by basic_lookup_symbol_nonlocal(), cp_basic_lookup_symbol(), cp_lookup_bare_symbol(), cp_lookup_nested_symbol_1(), and push_module_name().
|
static |
Definition at line 2428 of file symtab.c.
References block_lookup_symbol(), BLOCKVECTOR_BLOCK, COMPUNIT_BLOCKVECTOR, domain_name(), error_in_psymtab_expansion(), fixup_symbol_section(), fprintf_unfiltered(), gdb_stdlog, GLOBAL_BLOCK, host_address_to_string(), quick_symbol_functions::lookup_symbol, objfile_debug_name(), sym_fns::qf, objfile::sf, and symbol_lookup_debug.
Referenced by lookup_symbol_in_objfile().
Definition at line 489 of file symtab.c.
References iterate_over_symtabs(), and lookup_symtab_callback().
Referenced by block_lookup(), mi_cmd_disassemble(), mi_cmd_symbol_list_lines(), skip_file_command(), yylex(), and yyparse().
Definition at line 477 of file symtab.c.
Referenced by lookup_symtab().
Definition at line 2781 of file symtab.c.
References current_language, and language_defn::la_lookup_transparent_type.
Referenced by check_typedef().
|
static |
Definition at line 5913 of file symtab.c.
References main_info::name_of_main, and xfree().
Referenced by _initialize_symtab().
enum language main_language | ( | void | ) |
Definition at line 6029 of file symtab.c.
References find_main_name(), get_main_info(), main_info::language_of_main, and main_info::name_of_main.
Referenced by set_initial_language().
char* main_name | ( | void | ) |
Definition at line 6015 of file symtab.c.
References find_main_name(), get_main_info(), and main_info::name_of_main.
Referenced by inside_main_func(), run_command_1(), select_source_symtab(), set_initial_language(), and skip_prologue().
|
static |
Definition at line 1639 of file symtab.c.
References ALL_PSPACES, and symbol_cache_flush().
Referenced by _initialize_symtab().
|
static |
Definition at line 1613 of file symtab.c.
References _, ALL_PSPACES, program_space::num, objfile_name(), printf_filtered(), symbol_cache_dump(), symbol_cache_key, and program_space::symfile_object_file.
Referenced by _initialize_symtab().
|
static |
Definition at line 1684 of file symtab.c.
References _, ALL_PSPACES, program_space::num, objfile_name(), printf_filtered(), symbol_cache_key, symbol_cache_stats(), and program_space::symfile_object_file.
Referenced by _initialize_symtab().
struct cleanup* make_cleanup_free_search_symbols | ( | struct symbol_search ** | symbolsp | ) |
Definition at line 4327 of file symtab.c.
References do_free_search_symbols_cleanup(), and make_cleanup().
Referenced by rbreak_command(), search_symbols(), and symtab_symbol_info().
|
static |
Definition at line 1307 of file symtab.c.
References resize_symbol_cache(), and symbol_cache_size.
Referenced by get_symbol_cache().
int matching_obj_sections | ( | struct obj_section * | obj_first, |
struct obj_section * | obj_second | ||
) |
Definition at line 1075 of file symtab.c.
References ALL_OBJFILES, gdb_assert, objfile::obfd, 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_1().
|
static |
Definition at line 5789 of file symtab.c.
References add_filename_to_list(), filename_seen(), add_partial_filename_data::filename_seen_cache, not_interesting_fname(), add_partial_filename_data::text, add_partial_filename_data::text_len, and add_partial_filename_data::word.
const char* multiple_symbols_select_mode | ( | void | ) |
Definition at line 241 of file symtab.c.
References multiple_symbols_mode.
Referenced by decode_line_full(), and user_select_syms().
Definition at line 5759 of file symtab.c.
Referenced by maybe_add_partial_symtab_filename().
Definition at line 3984 of file symtab.c.
References _, symtab_and_line::end, error(), and startswith().
Referenced by search_symbols().
|
static |
Definition at line 4233 of file symtab.c.
References output_source_filename().
Referenced by sources_info().
|
static |
Definition at line 4202 of file symtab.c.
References filename_seen(), output_source_filename_data::filename_seen_cache, output_source_filename_data::first, fputs_filtered(), gdb_stdout, printf_filtered(), and wrap_here().
Referenced by output_partial_symbol_filename(), and sources_info().
|
static |
Definition at line 4779 of file symtab.c.
References BMSYMBOL_VALUE_ADDRESS, gdbarch_addr_bit(), get_objfile_arch(), hex_string_custom(), bound_minimal_symbol::minsym, MSYMBOL_PRINT_NAME, bound_minimal_symbol::objfile, and printf_filtered().
Referenced by symtab_symbol_info().
|
static |
Definition at line 4740 of file symtab.c.
References fputs_filtered(), gdb_stdout, LOC_TYPEDEF, printf_filtered(), STATIC_BLOCK, STRUCT_DOMAIN, SYMBOL_CLASS, SYMBOL_DOMAIN, SYMBOL_PRINT_NAME, symbol_symtab(), SYMBOL_TYPE, symtab_to_filename_for_display(), type_print(), typedef_print(), and TYPES_DOMAIN.
Referenced by rbreak_command(), and symtab_symbol_info().
Definition at line 6052 of file symtab.c.
References startswith().
Referenced by dwarf2_frame_find_quirks(), prototyped_function_p(), and read_structure_type().
|
static |
Definition at line 4886 of file symtab.c.
References symbol_search::block, break_command(), do_cleanups(), do_end_rbreak_breakpoints(), free_current_contents(), symtab::fullname, FUNCTIONS_DOMAIN, len, make_cleanup(), make_cleanup_free_search_symbols(), bound_minimal_symbol::minsym, symbol_search::msymbol, MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, symbol_search::next, print_symbol_info(), printf_filtered(), search_symbols(), skip_spaces(), start_rbreak_breakpoints(), symbol_search::symbol, SYMBOL_LINKAGE_NAME, symbol_symtab(), symtab_to_filename_for_display(), symtab_to_fullname(), and xrealloc().
Referenced by _initialize_symtab(), and rbreak_command_wrapper().
void rbreak_command_wrapper | ( | char * | regexp, |
int | from_tty | ||
) |
Definition at line 4872 of file symtab.c.
References rbreak_command().
int register_symbol_block_impl | ( | enum address_class | aclass, |
const struct symbol_block_ops * | ops | ||
) |
Definition at line 6131 of file symtab.c.
References symbol_impl::aclass, symbol_block_ops::find_frame_base_location, gdb_assert, LOC_BLOCK, MAX_SYMBOL_IMPLS, and symbol_impl::ops_block.
Referenced by _initialize_dwarf2_read().
int register_symbol_computed_impl | ( | enum address_class | aclass, |
const struct symbol_computed_ops * | ops | ||
) |
Definition at line 6105 of file symtab.c.
References symbol_impl::aclass, symbol_computed_ops::describe_location, gdb_assert, LOC_COMPUTED, MAX_SYMBOL_IMPLS, symbol_impl::ops_computed, symbol_computed_ops::read_needs_frame, symbol_computed_ops::read_variable, and symbol_computed_ops::tracepoint_var_ref.
Referenced by _initialize_dwarf2_read().
int register_symbol_register_impl | ( | enum address_class | aclass, |
const struct symbol_register_ops * | ops | ||
) |
Definition at line 6154 of file symtab.c.
References symbol_impl::aclass, gdb_assert, LOC_REGISTER, LOC_REGPARM_ADDR, MAX_SYMBOL_IMPLS, and symbol_impl::ops_register.
Referenced by _initialize_coffread(), _initialize_mdebugread(), and _initialize_stabsread().
|
static |
Definition at line 1274 of file symtab.c.
References symbol_cache::global_symbols, block_symbol_cache::size, symbol_cache::static_symbols, symbol_cache_byte_size(), xcalloc(), and xfree().
Referenced by make_symbol_cache(), and set_symbol_cache_size().
const char* search_domain_name | ( | enum search_domain | e | ) |
Definition at line 272 of file symtab.c.
References ALL_DOMAIN, FUNCTIONS_DOMAIN, gdb_assert_not_reached, TYPES_DOMAIN, and VARIABLES_DOMAIN.
Referenced by debug_qf_expand_symtabs_matching().
void search_symbols | ( | const char * | regexp, |
enum search_domain | kind, | ||
int | nfiles, | ||
const char * | files[], | ||
struct symbol_search ** | matches | ||
) |
Definition at line 4455 of file symtab.c.
References _, ALL_BLOCK_SYMBOLS, ALL_COMPUNITS, ALL_MSYMBOLS, basenames_may_differ, symbol_search::block, BLOCKVECTOR_BLOCK, case_sensitive_off, COMPUNIT_BLOCKVECTOR, minimal_symbol::created_by_gdb, discard_cleanups(), do_cleanups(), err, error(), expand_symtabs_matching(), file_matches(), symtab::filename, search_symbols_data::files, find_pc_compunit_symtab(), FUNCTIONS_DOMAIN, gdb_assert, get_regcomp_error(), GLOBAL_BLOCK, LOC_BLOCK, LOC_CONST, LOC_TYPEDEF, LOC_UNRESOLVED, lookup_symbol_in_objfile_from_linkage_name(), make_cleanup(), make_cleanup_free_search_symbols(), make_regfree_cleanup(), bound_minimal_symbol::minsym, mst_abs, mst_bss, mst_data, mst_file_bss, mst_file_data, mst_file_text, mst_solib_trampoline, mst_text, mst_text_gnu_ifunc, symbol_search::msymbol, MSYMBOL_LINKAGE_NAME, MSYMBOL_NATURAL_NAME, MSYMBOL_TYPE, MSYMBOL_VALUE_ADDRESS, symbol_search::next, search_symbols_data::nfiles, null_cleanup(), bound_minimal_symbol::objfile, operator_chars(), search_symbols_data::preg, search_symbols_data::preg_p, QUIT, search_symbols_file_matches(), search_symbols_name_matches(), sort_search_symbols_remove_dups(), STATIC_BLOCK, symbol_search::symbol, SYMBOL_CLASS, SYMBOL_NATURAL_NAME, symbol_symtab(), SYMBOL_TYPE, symtab_to_fullname(), TYPE_CODE, TYPE_CODE_ENUM, TYPES_DOMAIN, VAR_DOMAIN, VARIABLES_DOMAIN, xfree(), and xmalloc().
Referenced by rbreak_command(), and symtab_symbol_info().
|
static |
Definition at line 4420 of file symtab.c.
References file_matches(), search_symbols_data::files, and search_symbols_data::nfiles.
Referenced by search_symbols().
Definition at line 4431 of file symtab.c.
References search_symbols_data::preg, and search_symbols_data::preg_p.
Referenced by search_symbols().
Definition at line 5923 of file symtab.c.
References get_main_info(), main_info::language_of_main, language_unknown, main_info::name_of_main, and xfree().
Referenced by find_main_name(), and symtab_observer_executable_changed().
|
static |
Definition at line 1357 of file symtab.c.
References ALL_PSPACES, resize_symbol_cache(), and symbol_cache_key.
Referenced by set_symbol_cache_size_handler().
|
static |
Definition at line 1375 of file symtab.c.
References _, error(), MAX_SYMBOL_CACHE_SIZE, new_symbol_cache_size, set_symbol_cache_size(), and symbol_cache_size.
Referenced by _initialize_symtab().
void skip_prologue_sal | ( | struct symtab_and_line * | sal | ) |
Definition at line 3694 of file symtab.c.
References BLOCK_END, block_for_pc_sect(), BLOCK_FUNCTION, block_inlined_p(), BLOCK_START, BLOCK_SUPERBLOCK, BMSYMBOL_VALUE_ADDRESS, COMPUNIT_LOCATIONS_VALID, do_cleanups(), symtab_and_line::end, symtab_and_line::explicit_line, symtab_and_line::explicit_pc, find_pc_sect_function(), find_pc_sect_line(), fixup_symbol_section(), gdbarch_deprecated_function_start_offset(), gdbarch_skip_entrypoint(), gdbarch_skip_entrypoint_p(), gdbarch_skip_main_prologue(), gdbarch_skip_main_prologue_p(), gdbarch_skip_prologue(), get_objfile_arch(), symtab_and_line::line, lookup_minimal_symbol_by_pc_section(), bound_minimal_symbol::minsym, MSYMBOL_LINKAGE_NAME, MSYMBOL_OBJ_SECTION, name, bound_minimal_symbol::objfile, overlay_mapped_address(), overlay_unmapped_address(), symtab_and_line::pc, symtab_and_line::pspace, save_current_space_and_thread(), symtab_and_line::section, section_is_mapped(), section_is_overlay(), skip_prologue_using_lineinfo(), strcmp_iw(), switch_to_program_space_and_thread(), SYMBOL_BLOCK_VALUE, SYMBOL_LINE, SYMBOL_LINKAGE_NAME, SYMBOL_OBJ_SECTION, symbol_objfile(), symbol_symtab(), symtab_and_line::symtab, and SYMTAB_COMPUNIT.
Referenced by create_sals_line_offset(), find_function_start_sal(), minsym_found(), and resolve_sal_pc().
|
static |
Definition at line 3654 of file symtab.c.
References find_pc_partial_function(), linetable::item, linetable_entry::line, linetable::nitems, linetable_entry::pc, and SYMTAB_LINETABLE.
Referenced by skip_prologue_sal().
Definition at line 3882 of file symtab.c.
References block_for_pc(), BLOCK_FUNCTION, block_inlined_p(), BLOCK_SUPERBLOCK, symtab_and_line::end, find_pc_line(), find_pc_partial_function(), gdbarch_deprecated_function_start_offset(), linetable::item, symtab::language, language_asm, linetable_entry::line, symtab_and_line::line, linetable::nitems, linetable_entry::pc, symtab_and_line::pc, symtab_and_line::symtab, and SYMTAB_LINETABLE.
Referenced by aarch64_skip_prologue(), amd64_skip_prologue(), amd64_windows_skip_prologue(), arm_skip_prologue(), avr_skip_prologue(), frv_analyze_prologue(), ft32_skip_prologue(), i386_skip_prologue(), lm32_skip_prologue(), m32c_skip_prologue(), mips_skip_prologue(), moxie_skip_prologue(), mt_frame_unwind_cache(), nios2_skip_prologue(), rs6000_skip_prologue(), s390_skip_prologue(), sh_skip_prologue(), tic6x_skip_prologue(), and tilegx_skip_prologue().
|
static |
Definition at line 4359 of file symtab.c.
References symbol_search::block, compare_search_syms(), gdb_assert, symbol_search::next, qsort, xfree(), and xmalloc().
Referenced by search_symbols().
|
static |
Definition at line 4240 of file symtab.c.
References _, ALL_FILETABS, clear_filename_seen_cache(), create_filename_seen_cache(), delete_filename_seen_cache(), do_cleanups(), error(), output_source_filename_data::filename_seen_cache, output_source_filename_data::first, have_full_symbols(), have_partial_symbols(), make_cleanup(), map_symbol_filenames(), output_partial_symbol_filename(), output_source_filename(), printf_filtered(), and symtab_to_fullname().
Referenced by _initialize_symtab().
Definition at line 6240 of file symtab.c.
References symbol::arch, get_objfile_arch(), symbol::owner, SYMBOL_OBJFILE_OWNED, symbol::symtab, and SYMTAB_OBJFILE.
Referenced by add_class_symtab_symbol(), address_info(), block_gdbarch(), cp_lookup_symbol_imports_or_template(), default_read_var_value(), scope_info(), and syscm_get_symbol_map().
|
static |
Definition at line 1265 of file symtab.c.
Referenced by resize_symbol_cache().
|
static |
Definition at line 1347 of file symtab.c.
References free_symbol_cache().
Referenced by _initialize_symtab().
|
static |
Definition at line 1460 of file symtab.c.
References symbol_cache_slot::not_found, symbol_cache_slot::state, SYMBOL_SLOT_NOT_FOUND, SYMBOL_SLOT_UNUSED, symbol_cache_slot::value, and xfree().
Referenced by symbol_cache_flush(), symbol_cache_mark_found(), and symbol_cache_mark_not_found().
|
static |
Definition at line 1562 of file symtab.c.
References domain_name(), symbol_cache_slot::found, symbol_cache::global_symbols, host_address_to_string(), symbol_cache_slot::not_found, symbol_cache_slot::objfile_context, printf_filtered(), QUIT, block_symbol_cache::size, symbol_cache_slot::state, symbol_cache::static_symbols, SYMBOL_DOMAIN, SYMBOL_PRINT_NAME, 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 1516 of file symtab.c.
References block_symbol_cache::collisions, gdb_assert, 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_free_objfile_observer(), and symtab_new_objfile_observer().
|
static |
Definition at line 1402 of file symtab.c.
References domain_name(), eq_symbol_entry(), symbol_cache_slot::found, fprintf_unfiltered(), gdb_stdlog, GLOBAL_BLOCK, symbol_cache::global_symbols, hash(), hash_symbol_entry(), block_symbol_cache::hits, block_symbol_cache::misses, block_symbol_cache::size, symbol_cache_slot::state, symbol_cache::static_symbols, symbol_lookup_debug, SYMBOL_LOOKUP_FAILED, SYMBOL_SLOT_NOT_FOUND, block_symbol_cache::symbols, and symbol_cache_slot::value.
Referenced by lookup_global_symbol(), and lookup_static_symbol().
|
static |
Definition at line 1473 of file symtab.c.
References block_symbol_cache::collisions, symbol_cache_slot::found, symbol_cache_slot::objfile_context, symbol_cache_slot::state, symbol, symbol_cache_clear_slot(), SYMBOL_SLOT_FOUND, SYMBOL_SLOT_UNUSED, and symbol_cache_slot::value.
Referenced by lookup_global_symbol(), and lookup_static_symbol().
|
static |
Definition at line 1495 of file symtab.c.
References block_symbol_cache::collisions, symbol_cache_slot::domain, 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_symbol(), and lookup_static_symbol().
|
static |
Definition at line 1652 of file symtab.c.
References block_symbol_cache::collisions, symbol_cache::global_symbols, block_symbol_cache::hits, block_symbol_cache::misses, printf_filtered(), QUIT, block_symbol_cache::size, and symbol_cache::static_symbols.
Referenced by maintenance_print_symbol_cache_statistics().
Definition at line 5268 of file symtab.c.
References compare_symbol_name(), add_name_data::sym_text, and add_name_data::sym_text_len.
Referenced by default_make_symbol_completion_list_break_on_1().
const char* symbol_demangled_name | ( | const struct general_symbol_info * | gsymbol | ) |
Definition at line 1024 of file symtab.c.
References ada_decode_symbol(), general_symbol_info::language, language_ada, language_cplus, language_d, language_fortran, language_go, language_java, language_objc, and symbol_get_demangled_name().
|
static |
Definition at line 709 of file symtab.c.
References ada_decode(), d_demangle(), demangled_name_entry::demangled, gdb_demangle(), go_demangle(), general_symbol_info::language, language_ada, language_auto, language_cplus, language_d, language_go, language_java, language_objc, language_unknown, and objc_demangle().
Referenced by symbol_set_names().
const char* symbol_get_demangled_name | ( | const struct general_symbol_info * | gsymbol | ) |
Definition at line 612 of file symtab.c.
References general_symbol_info::ada_mangled, general_symbol_info::language, language_ada, general_symbol_info::language_specific, and general_symbol_info::mangled_lang.
Referenced by new_symbol_full(), symbol_demangled_name(), and symbol_natural_name().
int symbol_matches_domain | ( | enum language | symbol_language, |
domain_enum | symbol_domain, | ||
domain_enum | domain | ||
) |
Definition at line 2758 of file symtab.c.
References language_ada, language_cplus, language_d, language_java, STRUCT_DOMAIN, and VAR_DOMAIN.
Referenced by ada_add_block_symbols(), block_find_symbol(), block_lookup_symbol(), block_lookup_symbol_primary(), eq_symbol_entry(), iterate_over_symbols(), lookup_partial_symbol(), map_block(), and match_partial_symbol().
const char* symbol_natural_name | ( | const struct general_symbol_info * | gsymbol | ) |
Definition at line 999 of file symtab.c.
References ada_decode_symbol(), general_symbol_info::language, language_ada, language_cplus, language_d, language_fortran, language_go, language_java, language_objc, general_symbol_info::name, and symbol_get_demangled_name().
Referenced by symbol_search_name().
Definition at line 6231 of file symtab.c.
References gdb_assert, symbol::owner, SYMBOL_OBJFILE_OWNED, symbol::symtab, and SYMTAB_OBJFILE.
Referenced by address_info(), block_objfile(), default_read_var_value(), find_function_in_inferior(), find_function_start_sal(), fixup_symbol_section(), frapy_block(), gdbscm_frame_block(), jump_command(), operator_check_standard(), print_symbol(), set_symbol(), skip_prologue_sal(), sympy_dealloc(), and syscm_get_symbol_map().
const char* symbol_search_name | ( | const struct general_symbol_info * | gsymbol | ) |
Definition at line 1053 of file symtab.c.
References general_symbol_info::language, language_ada, general_symbol_info::name, and symbol_natural_name().
void symbol_set_demangled_name | ( | struct general_symbol_info * | gsymbol, |
const char * | name, | ||
struct obstack * | obstack | ||
) |
Definition at line 588 of file symtab.c.
References general_symbol_info::ada_mangled, general_symbol_info::language, language_ada, general_symbol_info::language_specific, general_symbol_info::mangled_lang, name, and general_symbol_info::obstack.
Referenced by new_symbol_full(), symbol_set_language(), and symbol_set_names().
void symbol_set_language | ( | struct general_symbol_info * | gsymbol, |
enum language language | , | ||
struct obstack * | obstack | ||
) |
Definition at line 629 of file symtab.c.
References general_symbol_info::ada_mangled, gdb_assert, general_symbol_info::language, language_ada, language_cplus, language_d, language_fortran, language_go, language_java, language_objc, general_symbol_info::language_specific, general_symbol_info::obstack, and symbol_set_demangled_name().
void symbol_set_names | ( | struct general_symbol_info * | gsymbol, |
const char * | linkage_name, | ||
int | len, | ||
int | copy_name, | ||
struct objfile * | objfile | ||
) |
Definition at line 851 of file symtab.c.
References create_demangled_names_hash(), demangled_name_entry::demangled, objfile_per_bfd_storage::demangled_names_hash, JAVA_PREFIX, JAVA_PREFIX_LEN, general_symbol_info::language, language_ada, language_go, language_java, len, demangled_name_entry::mangled, name, general_symbol_info::name, objfile::per_bfd, objfile_per_bfd_storage::storage_obstack, symbol_find_demangled_name(), symbol_set_demangled_name(), and xfree().
Definition at line 6259 of file symtab.c.
References gdb_assert, symbol::owner, SYMBOL_OBJFILE_OWNED, and symbol::symtab.
Referenced by add_symbol(), end_symtab_with_blockvector(), finalize_symtab(), new_symbol_full(), and set_missing_symtab().
Definition at line 6250 of file symtab.c.
References gdb_assert, symbol::owner, SYMBOL_OBJFILE_OWNED, and symbol::symtab.
Referenced by btrace_call_history_src_line(), btrace_compute_src_line_range(), cache_symbol(), compare_search_syms(), compare_symbols(), convert_linespec_to_sals(), convert_one_symbol(), end_symtab_with_blockvector(), find_frame_sal(), find_method(), fixup_go_packaging(), fixup_symbol_section(), ftrace_function_switched(), ftrace_print_filename(), gdbscm_symbol_symtab(), print_symbol_info(), rbreak_command(), search_symbols(), set_missing_symtab(), set_symbol(), skip_prologue_sal(), symbol_to_sal(), sympy_dealloc(), sympy_get_symtab(), symtab_symbol_info(), and user_select_syms().
|
static |
Definition at line 5308 of file symtab.c.
References add_symtab_completions(), add_name_data::code, add_name_data::sym_text, add_name_data::sym_text_len, add_name_data::text, and add_name_data::word.
Referenced by default_make_symbol_completion_list_break_on_1().
|
static |
Definition at line 1719 of file symtab.c.
References objfile::pspace, and symbol_cache_flush().
Referenced by _initialize_symtab().
|
static |
Definition at line 1710 of file symtab.c.
References current_program_space, and symbol_cache_flush().
Referenced by _initialize_symtab().
|
static |
Definition at line 6042 of file symtab.c.
References language_unknown, and set_main_name().
Referenced by _initialize_symtab().
|
static |
Definition at line 4801 of file symtab.c.
References _, symbol_search::block, do_cleanups(), gdb_assert, make_cleanup_free_search_symbols(), bound_minimal_symbol::minsym, symbol_search::msymbol, symbol_search::next, print_msymbol_info(), print_symbol_info(), printf_filtered(), QUIT, search_symbols(), symbol_search::symbol, symbol_symtab(), symtab_to_filename_for_display(), and TYPES_DOMAIN.
Referenced by functions_info(), types_info(), and variables_info().
|
static |
Definition at line 4864 of file symtab.c.
References symtab_symbol_info(), and TYPES_DOMAIN.
Referenced by _initialize_symtab().
|
static |
Definition at line 4851 of file symtab.c.
References symtab_symbol_info(), and VARIABLES_DOMAIN.
Referenced by _initialize_symtab().
VEC | ( | CORE_ADDR | ) |
Definition at line 3442 of file symtab.c.
References find_line_common(), linetable_entry::line, linetable_entry::pc, SYMTAB_LINETABLE, and VEC_safe_push.
|
static |
Definition at line 5031 of file symtab.c.
References compare_symbol_name(), maybe_add_completion(), MAYBE_ADD_COMPLETION_DUPLICATE, MAYBE_ADD_COMPLETION_MAX_REACHED, MAYBE_ADD_COMPLETION_OK, MAYBE_ADD_COMPLETION_OK_MAX_REACHED, throw_max_completions_reached_error(), VEC_safe_push, word, xfree(), and xmalloc().
initialize_file_ftype _initialize_symtab |
int basenames_may_differ = 0 |
Definition at line 220 of file symtab.c.
Referenced by _initialize_symtab(), dw2_expand_symtabs_matching(), dw2_map_symtabs_matching_filename(), function_name_is_marked_for_skip(), iterate_over_some_symtabs(), psym_expand_symtabs_matching(), psym_expand_symtabs_with_fullname(), psym_map_symtabs_matching_filename(), and search_symbols().
Definition at line 250 of file symtab.c.
Referenced by convert_symbol_sym(), push_variable(), standard_lookup(), write_dollar_variable(), and yyparse().
|
static |
Definition at line 91 of file symtab.c.
Referenced by _initialize_symtab(), and get_main_info().
const char multiple_symbols_all[] = "all" |
Definition at line 227 of file symtab.c.
Referenced by decode_line_2(), decode_line_full(), decode_linespec_default(), and user_select_syms().
const char multiple_symbols_ask[] = "ask" |
Definition at line 226 of file symtab.c.
Referenced by decode_line_full().
const char multiple_symbols_cancel[] = "cancel" |
Definition at line 228 of file symtab.c.
Referenced by decode_line_2(), decode_line_full(), and user_select_syms().
|
static |
Definition at line 236 of file symtab.c.
Referenced by _initialize_symtab(), and multiple_symbols_select_mode().
Definition at line 229 of file symtab.c.
Referenced by _initialize_symtab().
|
static |
Definition at line 210 of file symtab.c.
Referenced by _initialize_symtab(), and set_symbol_cache_size_handler().
|
static |
|
static |
Definition at line 108 of file symtab.c.
Referenced by _initialize_symtab(), get_symbol_cache(), maintenance_print_symbol_cache(), maintenance_print_symbol_cache_statistics(), set_symbol_cache_size(), and symbol_cache_flush().
|
static |
Definition at line 215 of file symtab.c.
Referenced by get_symbol_cache(), make_symbol_cache(), set_symbol_cache_size_handler(), and symbol_cache_flush().
|
static |
const struct symbol_impl* symbol_impls = &symbol_impl[0] |
unsigned int symbol_lookup_debug = 0 |
Definition at line 207 of file symtab.c.
Referenced by _initialize_symtab(), cp_lookup_nested_symbol(), cp_lookup_symbol_imports_or_template(), cp_lookup_symbol_namespace(), cp_lookup_symbol_nonlocal(), language_lookup_primitive_type_as_symbol(), lookup_language_this(), lookup_minimal_symbol(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_objfile(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_in_static_block(), lookup_symbol_via_quick_fns(), and symbol_cache_lookup().
unsigned int symtab_create_debug = 0 |
Definition at line 204 of file symtab.c.
Referenced by _initialize_symtab(), allocate_compunit_symtab(), allocate_psymtab(), allocate_symtab(), elf_read_minimal_symbols(), and install_minimal_symbols().