GDB (xrefs)
|
#include "symtab.h"
Public Member Functions | |
const char * | linkage_name () const |
const char * | natural_name () const |
const char * | print_name () const |
const char * | demangled_name () const |
const char * | search_name () const |
void | set_linkage_name (const char *linkage_name) |
void | set_demangled_name (const char *name, struct obstack *obstack) |
enum language | language () const |
void | set_language (enum language language, struct obstack *obstack) |
void | compute_and_set_names (gdb::string_view linkage_name, bool copy_name, struct objfile_per_bfd_storage *per_bfd, gdb::optional< hashval_t > hash=gdb::optional< hashval_t >()) |
CORE_ADDR | value_address () const |
void | set_value_address (CORE_ADDR address) |
unrelocated_addr | unrelocated_address () const |
void | set_unrelocated_address (unrelocated_addr addr) |
void | set_section_index (short idx) |
short | section_index () const |
struct obj_section * | obj_section (const struct objfile *objfile) const |
Public Attributes | ||
const char * | m_name | |
union { | ||
LONGEST ivalue | ||
const struct block * block | ||
const gdb_byte * bytes | ||
CORE_ADDR address | ||
unrelocated_addr unrel_addr | ||
const struct common_block * common_block | ||
struct symbol * chain | ||
} | m_value | |
union { | ||
struct obstack * obstack | ||
const char * demangled_name | ||
} | language_specific | |
__extension__ enum language | m_language: LANGUAGE_BITS | |
unsigned int | ada_mangled: 1 | |
short | m_section | |
void general_symbol_info::compute_and_set_names | ( | gdb::string_view | linkage_name, |
bool | copy_name, | ||
struct objfile_per_bfd_storage * | per_bfd, | ||
gdb::optional< hashval_t > | hash = gdb::optional<hashval_t> () ) |
Definition at line 943 of file symtab.c.
References copy_name(), create_demangled_names_hash(), demangled_name, objfile_per_bfd_storage::demangled_names_hash, hash_demangled_name_entry(), language(), language_ada, language_go, language_specific, language_unknown, linkage_name(), m_language, m_name, set_demangled_name(), objfile_per_bfd_storage::storage_obstack, and symbol_find_demangled_name().
Referenced by partial_symtab::add_psymbol(), define_symbol(), fixup_go_packaging(), minimal_symbol_reader::install(), new_symbol(), and process_coff_symbol().
const char * general_symbol_info::demangled_name | ( | ) | const |
|
inline |
Definition at line 502 of file symtab.h.
References m_language.
Referenced by add_minsym_to_demangled_hash_table(), psymbol_bcache::compare(), completion_list_add_fields(), completion_list_add_msymbol(), completion_list_add_symbol(), compute_and_set_names(), cp_lookup_symbol_imports_or_template(), define_symbol(), eq_symbol_entry(), find_frame_funname(), find_method(), fixup_go_packaging(), ft32_skip_prologue(), go_symbol_package_name(), psymbol_bcache::hash(), info_frame_command_core(), insert_symbol_hashed(), inspect_type(), list_arg_or_local(), psymbol_functions::lookup_global_symbol_language(), mdict_add_symbol(), moxie_skip_prologue(), print_variable_and_value_data::operator()(), parse_symbol(), print_frame_arg(), process_one_symbol(), psymbol_name_matches(), py_print_single_arg(), read_var_value(), scoped_switch_to_sym_language_if_auto::scoped_switch_to_sym_language_if_auto(), set_initial_language(), set_language(), symbol_find_demangled_name(), symbol_matches_search_name(), xstormy16_skip_prologue(), and yylex().
|
inline |
Definition at line 460 of file symtab.h.
References m_name.
Referenced by ada_decode_symbol(), ada_has_this_exception_support(), ada_is_non_standard_exception_sym(), ada_is_renaming_symbol(), ada_parse_renaming(), ada_read_renaming_var_value(), ada_resolve_funcall(), ada_resolve_variable(), add_symbol_to_list(), amd64_skip_main_prologue(), amd64_windows_skip_trampoline_code(), arm_pe_skip_trampoline_code(), arm_skip_stack_protector(), arm_wince_skip_main_prologue(), build_address_symbolic(), build_minimal_symbol_hash_tables(), c_print_typedef(), c_type_print_template_args(), cleanup_undefined_types_1(), coff_read_enum_type(), common_block_end(), compact_minimal_symbols(), psymbol_bcache::compare(), compute_and_set_names(), convert_code_addr_to_desc_addr(), define_symbol(), disassemble_command(), expr::var_msym_value_operation::do_generate_ax(), dump_symtab_1(), elf_gnu_ifunc_record_cache(), find_pc_partial_function(), find_pc_sect_line(), find_solib_trampoline_target(), find_symbol_in_list(), fixup_symbol_section(), frv_fdpic_find_canonical_descriptor(), frv_skip_main_prologue(), ftrace_function_switched(), gdbscm_symbol_linkage_name(), gen_var_ref(), get_msymbol_address(), get_prev_frame_always_1(), get_symbol_address(), gnuv2_value_rtti_type(), gnuv3_get_typename_from_type_info(), go_symbol_package_name(), i386_pe_skip_trampoline_code(), i386_skip_main_prologue(), ia64_convert_from_func_ptr_addr(), info_address_command(), info_checkpoints_command(), lesseq_defined_than(), lookup_minimal_symbol_by_pc_name(), lookup_minimal_symbol_text(), m32c_m16c_address_to_pointer(), m32c_m16c_pointer_to_address(), minimal_symbol_is_less_than(), minsym_found(), mips_skip_pic_trampoline_code(), mips_stub_frame_sniffer(), msp430_skip_trampoline_code(), natural_name(), new_symbol(), overload_list_add_symbol(), parse_symbol(), patch_opaque_types(), powerpc_linux_in_dynsym_resolve_code(), print_frame_args(), print_name(), print_symbol(), m2_language::print_typedef(), process_coff_symbol(), read_atcb(), read_enum_type(), read_func_scope(), read_type(), language_defn::read_var_value(), remove_extra_symbols(), remove_irrelevant_renamings(), rs6000_skip_main_prologue(), rs6000_skip_trampoline_code(), scan_file_globals(), search_name(), set_linkage_name(), set_traceframe_context(), skip_prologue_function(), skip_prologue_sal(), sort_choices(), sympy_get_linkage_name(), and x86_in_indirect_branch_thunk().
const char * general_symbol_info::natural_name | ( | ) | const |
Definition at line 1056 of file symtab.c.
References ada_decode_symbol(), language_ada, language_cplus, language_d, language_fortran, language_go, language_objc, language_rust, language_specific, and linkage_name().
Referenced by expr::ada_name_association::assign(), c_symbol_substitution_name(), canonicalize_linespec(), completion_list_add_msymbol(), completion_list_add_symbol(), completion_list_objc_symbol(), convert_linespec_to_sals(), convert_one_symbol(), convert_one_symbol(), convert_symbol_bmsym(), convert_symbol_bmsym(), cp_lookup_symbol_imports_or_template(), create_sals_line_offset(), dwarf2_symbol_mark_computed(), encode_actions_1(), eq_symname(), find_imps(), find_overload_match(), func_get_frame_base_dwarf_block(), gdbscm_symbol_name(), hash_symname(), locexpr_generate_c_location(), loclist_generate_c_location(), minsym_found(), msymbol_is_cold_clone(), print_variable_and_value_data::operator()(), overload_list_add_symbol(), print_name(), search_name(), search_symbol_list(), sympy_get_name(), and treg_matches_sym_type_name().
struct obj_section * general_symbol_info::obj_section | ( | const struct objfile * | objfile | ) | const |
Definition at line 1117 of file symtab.c.
References section_index(), and objfile::sections_start.
Referenced by find_function_start_sal(), find_minsym_type_and_address(), info_address_command(), jump_command(), lookup_minimal_symbol_by_pc_section(), minsym_found(), bound_minimal_symbol::obj_section(), partial_symbol::obj_section(), print_symbol(), language_defn::read_var_value(), resolve_sal_pc(), and skip_prologue_sal().
|
inline |
Definition at line 475 of file symtab.h.
References demangle, linkage_name(), and natural_name().
Referenced by ada_alias_get_block_value(), ada_print_symbol_signature(), ada_resolve_funcall(), address_of_variable(), bkscm_print_block_smob(), blpy_repr(), btrace_call_history(), btrace_get_bfun_name(), build_address_symbolic(), c_print_typedef(), call_site_find_chain_1(), call_site_for_pc(), collection_list::collect_symbol(), symbol_search::compare_search_syms(), convert_one_symbol(), convert_one_symbol(), disassemble_command(), do_compile_dwarf_expr_to_c(), expr::ada_var_value_operation::do_generate_ax(), expr::var_value_operation::do_generate_ax(), expr::op_this_operation::do_generate_ax(), expr::dump_for_expression(), expr::dump_for_expression(), dwarf2_const_value(), dwarf_expr_reg_to_entry_parameter(), edit_command(), eval_op_var_entry_value(), eval_op_var_msym_value(), expr::ada_var_value_operation::evaluate(), expr::ada_funcall_operation::evaluate(), expr::var_value_operation::evaluate(), expr::adl_func_operation::evaluate(), expr::var_msym_value_operation::evaluate_for_sizeof(), expr::var_value_operation::evaluate_funcall(), fill_in_stop_func(), find_frame_funname(), buildsym_compunit::finish_block_internal(), finish_command(), ftrace_print_function_name(), func_verify_no_selftailcall(), gdbscm_symbol_print_name(), gen_maybe_namespace_elt(), gen_var_ref(), get_function_name(), get_hosting_frame(), get_return_value(), info_address_command(), info_cb(), info_common_command_for_block(), info_frame_command_core(), info_module_subcommand(), info_symbol_command(), inline_frame_is_marked_for_skip(), call_site_target::iterate_over_addresses(), jump_command(), list_arg_or_local(), list_command(), locexpr_describe_location_1(), locexpr_describe_location_piece(), loclist_describe_location(), lookup_language_this(), maintenance_translate_address(), mdebug_reg_to_regnum(), output_debug_symbol(), output_module_symbols_in_single_module(), output_nondebug_symbol(), prepare_one_step(), print_breakpoint_location(), print_frame_arg(), print_msymbol_info(), print_one_static_tracepoint_marker(), print_sal_location(), print_symbol(), m2_language::print_typedef(), pascal_language::print_typedef(), rust_language::print_typedef(), print_unpacked_pointer(), print_variable_and_value(), py_print_frame(), py_print_single_arg(), language_defn::read_var_value(), scan_file_globals(), skip_function_command(), stab_reg_to_regnum(), symbol_cache_dump(), symbol_to_info_string(), sympy_repr(), sympy_str(), syscm_print_symbol_smob(), tailcall_dump(), update_static_tracepoint(), user_select_syms(), validate_actionline(), and pascal_language::value_print_inner().
const char * general_symbol_info::search_name | ( | ) | const |
Definition at line 1106 of file symtab.c.
References language_ada, linkage_name(), and natural_name().
Referenced by build_minimal_symbol_hash_tables(), eq_symbol_entry(), find_gnu_ifunc(), find_label_symbols_in_block(), insert_exception_resume_breakpoint(), insert_symbol_hashed(), iter_match_first_hashed(), iter_match_next_linear(), list_args_or_locals(), new_symbol(), print_unpacked_pointer(), psymbol_name_matches(), search_name_hash(), symbol_matches_search_name(), and pascal_language::value_print_inner().
|
inline |
Definition at line 621 of file symtab.h.
References m_section.
Referenced by add_pe_forwarded_sym(), partial_symbol::address(), compact_minimal_symbols(), fixup_symbol_section(), get_msymbol_address(), minimal_symbol_upper_bound(), obj_section(), process_one_symbol(), relocate_one_symbol(), and var_decode_location().
void general_symbol_info::set_demangled_name | ( | const char * | name, |
struct obstack * | obstack ) |
Definition at line 778 of file symtab.c.
References ada_mangled, language_ada, language_specific, name, and obstack.
Referenced by compute_and_set_names(), new_symbol(), and set_language().
Definition at line 803 of file symtab.c.
References ada_mangled, language(), language_ada, language_cplus, language_d, language_fortran, language_go, language_objc, language_specific, m_language, obstack, and set_demangled_name().
Referenced by partial_symtab::add_psymbol(), language_arch_info::type_and_symbol::alloc_type_symbol(), define_symbol(), fixup_go_packaging(), new_symbol(), new_symbol(), process_coff_symbol(), read_enum_type(), minimal_symbol_reader::record_full(), and write_ambiguous_var().
|
inline |
Definition at line 494 of file symtab.h.
References linkage_name(), and m_name.
Referenced by add_ada_export_symbol(), coff_read_enum_type(), common_block_end(), define_symbol(), new_symbol(), parse_symbol(), patch_block_stabs(), process_xcoff_symbol(), read_enum_type(), and write_ambiguous_var().
|
inline |
Definition at line 614 of file symtab.h.
References m_section.
Referenced by partial_symtab::add_psymbol(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_symtab_read(), buildsym_compunit::finish_block_internal(), fixup_symbol_section(), new_symbol(), parse_symbol(), process_coff_symbol(), process_one_symbol(), process_xcoff_symbol(), read_xcoff_symtab(), minimal_symbol_reader::record_full(), and scan_file_globals().
|
inline |
Definition at line 534 of file symtab.h.
References m_value.
Referenced by mips_elf_make_msymbol_special(), minimal_symbol_reader::record_full(), and partial_symbol::set_unrelocated_address().
|
inline |
Definition at line 522 of file symtab.h.
References address, and m_value.
Referenced by gdb_bfd_lookup_symbol_from_symtab().
|
inline |
Definition at line 528 of file symtab.h.
References m_value.
Referenced by partial_symbol::address(), and partial_symbol::unrelocated_address().
|
inline |
unsigned int general_symbol_info::ada_mangled |
Definition at line 602 of file symtab.h.
Referenced by ada_decode_symbol(), set_demangled_name(), set_language(), and symbol::symbol().
CORE_ADDR general_symbol_info::address |
Definition at line 561 of file symtab.h.
Referenced by convert_address_location_to_sals(), elf_rel_plt_read(), find_symbol_at_address(), get_msymbol_address(), get_symbol_address(), record_minimal_symbol(), set_value_address(), and symbol::set_value_address().
const struct block* general_symbol_info::block |
Definition at line 557 of file symtab.h.
Referenced by lookup_symbol_in_objfile_symtabs(), and symbol::set_value_block().
const gdb_byte* general_symbol_info::bytes |
Definition at line 559 of file symtab.h.
Referenced by symbol::set_value_bytes().
struct symbol* general_symbol_info::chain |
Definition at line 573 of file symtab.h.
Referenced by call_site_find_chain_2(), and symbol::value_chain().
const struct common_block* general_symbol_info::common_block |
Definition at line 569 of file symtab.h.
Referenced by symbol::set_value_common_block().
const char * general_symbol_info::demangled_name |
Definition at line 589 of file symtab.h.
Referenced by ada_decode_symbol(), compute_and_set_names(), cp_scan_for_anonymous_namespaces(), cp_set_block_scope(), demangle_for_lookup(), dump_symtab_1(), gnuv3_get_typename_from_type_info(), gnuv3_rtti_type(), and gnuv3_skip_trampoline().
union { ... } general_symbol_info::language_specific |
Referenced by ada_decode_symbol(), compute_and_set_names(), natural_name(), set_demangled_name(), set_language(), and symbol::symbol().
__extension__ enum language general_symbol_info::m_language |
Definition at line 597 of file symtab.h.
Referenced by compute_and_set_names(), language(), set_language(), symbol::symbol(), and symbol_find_demangled_name().
const char* general_symbol_info::m_name |
Definition at line 545 of file symtab.h.
Referenced by language_arch_info::type_and_symbol::alloc_type_symbol(), compute_and_set_names(), cp_lookup_symbol_via_imports(), finalize_symtab(), psymbol_bcache::hash(), linkage_name(), minimal_symbol_reader::record_full(), set_linkage_name(), and symbol::symbol().
short general_symbol_info::m_section |
Definition at line 608 of file symtab.h.
Referenced by section_index(), set_section_index(), and symbol::symbol().
union { ... } general_symbol_info::m_value |
Referenced by psymbol_bcache::compare(), get_msymbol_address(), get_symbol_address(), psymbol_bcache::hash(), set_unrelocated_address(), set_value_address(), symbol::set_value_address(), symbol::set_value_block(), symbol::set_value_bytes(), symbol::set_value_chain(), symbol::set_value_common_block(), symbol::set_value_longest(), symbol::symbol(), unrelocated_address(), minimal_symbol::unrelocated_address(), value_address(), symbol::value_address(), symbol::value_block(), symbol::value_bytes(), symbol::value_chain(), symbol::value_common_block(), minimal_symbol::value_longest(), and symbol::value_longest().
struct obstack* general_symbol_info::obstack |
Definition at line 585 of file symtab.h.
Referenced by ada_decode_symbol(), alloc_rust_variant(), dict_create_hashed(), dict_create_linear(), rust_fully_qualify(), set_demangled_name(), and set_language().
unrelocated_addr general_symbol_info::unrel_addr |
Definition at line 565 of file symtab.h.
Referenced by frob_address().