GDB (xrefs)
|
#include "symtab.h"
Public Member Functions | |
symbol () | |
symbol (const symbol &)=default | |
symbol & | operator= (const symbol &)=default |
void | set_aclass_index (unsigned int aclass_index) |
const symbol_impl & | impl () const |
address_class | aclass () const |
bool | matches (domain_enum d) const |
domain_enum | domain () const |
void | set_domain (domain_enum domain) |
bool | is_objfile_owned () const |
void | set_is_objfile_owned (bool is_objfile_owned) |
bool | is_argument () const |
void | set_is_argument (bool is_argument) |
bool | is_inlined () const |
void | set_is_inlined (bool is_inlined) |
bool | is_cplus_template_function () const |
struct type * | type () const |
void | set_type (struct type *type) |
unsigned int | line () const |
void | set_line (unsigned int line) |
LONGEST | value_longest () const |
void | set_value_longest (LONGEST value) |
CORE_ADDR | value_address () const |
void | set_value_address (CORE_ADDR address) |
const gdb_byte * | value_bytes () const |
void | set_value_bytes (const gdb_byte *bytes) |
const common_block * | value_common_block () const |
void | set_value_common_block (const common_block *common_block) |
const block * | value_block () const |
void | set_value_block (const block *block) |
symbol * | value_chain () const |
void | set_value_chain (symbol *sym) |
bool | is_artificial () const |
void | set_is_artificial (bool artificial) |
struct objfile * | objfile () const |
struct gdbarch * | arch () const |
struct symtab * | symtab () const |
void | set_symtab (struct symtab *symtab) |
![]() | |
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 | ||
struct type * | m_type = nullptr | |
union { | ||
struct symtab * symtab | ||
struct gdbarch * arch | ||
} | owner | |
__extension__ enum domain_enum | m_domain: SYMBOL_DOMAIN_BITS | |
unsigned int | m_aclass_index: SYMBOL_ACLASS_BITS | |
unsigned int | m_is_objfile_owned: 1 | |
unsigned | m_is_argument: 1 | |
unsigned | m_is_inlined: 1 | |
unsigned | maybe_copied: 1 | |
__extension__ enum symbol_subclass_kind | subclass: 2 | |
bool | m_artificial: 1 | |
unsigned int | m_line = 0 | |
void * | aux_value = nullptr | |
struct symbol * | hash_next = nullptr | |
![]() | ||
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 | |
|
inline |
Definition at line 1237 of file symtab.h.
References general_symbol_info::ada_mangled, general_symbol_info::language_specific, language_unknown, general_symbol_info::m_language, general_symbol_info::m_name, general_symbol_info::m_section, general_symbol_info::m_value, and owner.
Referenced by build_address_symbolic(), expr::ada_var_value_operation::do_generate_ax(), expr::ada_var_value_operation::evaluate(), expr::var_value_operation::evaluate(), expr::var_value_operation::evaluate_for_address(), expr::var_value_operation::evaluate_with_coercion(), find_label_symbols(), find_method(), expr::var_value_operation::get_symbol(), output_module_symbols_in_single_module(), output_module_symbols_in_single_module_and_file(), print_breakpoint_location(), remove_irrelevant_renamings(), expr::ada_var_value_operation::resolve(), rust_get_trait_object_pointer(), symbol_object_to_symbol(), and yyparse().
|
default |
|
inline |
Definition at line 1274 of file symtab.h.
References symbol_impl::aclass, and impl().
Referenced by ada_alias_get_block_value(), ada_exception_sal(), ada_find_any_type_symbol(), ada_has_this_exception_support(), ada_is_exception_sym(), ada_parse_renaming(), collect_info::add_symbol(), best_symbol(), better_symbol(), c_type_print_template_args(), expr::check_constant(), classify_inner_name(), classify_inner_name(), classify_name(), classify_name(), cleanup_undefined_types_1(), collection_list::collect_symbol(), completion_list_add_fields(), completion_list_add_symbol(), convert_one_symbol(), convert_one_symbol(), cp_lookup_rtti_type(), define_symbol(), expr::var_value_operation::evaluate_for_address(), find_function_alias_target(), find_function_in_inferior(), find_gnu_ifunc(), find_primitive_type(), fixup_go_packaging(), fixup_symbol_section(), gcc_cplus_symbol_address(), gcc_symbol_address(), gdbscm_symbol_addr_class(), gdbscm_symbol_constant_p(), gdbscm_symbol_function_p(), gdbscm_symbol_value(), gdbscm_symbol_variable_p(), gen_var_ref(), generate_c_for_for_one_variable(), get_symbol_address(), info_address_command(), info_classes_command(), inside_main_func(), lesseq_defined_than(), lookup_typename(), mi_should_print(), mips_make_symbol_special(), rust_parser::name_to_operation(), new_symbol(), old_renaming_is_invisible(), match_data::operator()(), package_name_p(), prepare_one_step(), print_frame_args(), print_symbol(), read_type(), language_defn::read_var_value(), relocate_one_symbol(), remove_extra_symbols(), remove_irrelevant_renamings(), scan_file_globals(), select_possible_type_sym(), select_source_symtab(), symbol_read_needs(), symbol_to_info_string(), symbol_to_sal(), sympy_get_addr_class(), sympy_is_constant(), sympy_is_function(), sympy_is_variable(), sympy_value(), typy_template_argument(), user_select_syms(), validate_actionline(), value_maybe_namespace_elt(), write_object_renaming(), yylex(), yylex(), yylex(), and yyparse().
struct gdbarch * symbol::arch | ( | ) | const |
|
inline |
Definition at line 1286 of file symtab.h.
References m_domain.
Referenced by ada_add_all_symbols(), ada_add_block_symbols(), ada_funcall(), ada_lookup_encoded_symbol(), ada_lookup_symbol_list(), ada_lookup_symbol_list_worker(), best_symbol(), better_symbol(), block_find_symbol(), block_lookup_symbol(), cleanup_undefined_types_1(), completion_list_add_symbol(), convert_one_symbol(), convert_one_symbol(), cp_lookup_symbol_imports_or_template(), expr::ada_var_value_operation::do_generate_ax(), eq_symbol_entry(), expr::ada_var_value_operation::evaluate(), expr::ada_funcall_operation::evaluate(), gdbpy_lookup_global_symbol(), gdbpy_lookup_static_symbol(), gdbpy_lookup_symbol(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), lesseq_defined_than(), lookup_symbol_in_objfile_symtabs(), matches(), mylookup_symbol(), objfpy_lookup_global_symbol(), objfpy_lookup_static_symbol(), print_symbol(), read_type(), expr::ada_var_value_operation::resolve(), expr::ada_funcall_operation::resolve(), set_domain(), symbol_cache_dump(), and symbol_to_info_string().
|
inline |
Definition at line 1269 of file symtab.h.
References m_aclass_index, and symbol_impls.
Referenced by aclass().
|
inline |
Definition at line 1306 of file symtab.h.
References m_is_argument.
Referenced by define_symbol(), gdbscm_symbol_argument_p(), gdbscm_symbol_variable_p(), info_address_command(), list_arg_or_local(), list_args_or_locals(), mi_should_print(), match_data::operator()(), print_frame_args(), print_symbol(), set_is_argument(), sympy_is_argument(), sympy_is_variable(), and yyparse().
|
inline |
Definition at line 1412 of file symtab.h.
References m_artificial.
Referenced by ada_language::symbol_printing_suppressed().
|
inline |
Definition at line 1326 of file symtab.h.
References subclass, and SYMBOL_TEMPLATE.
Referenced by cp_lookup_symbol_imports_or_template().
|
inline |
Definition at line 1316 of file symtab.h.
References m_is_inlined.
Referenced by block::inlined_p(), iterate_over_all_matching_symtabs(), and set_is_inlined().
|
inline |
Definition at line 1296 of file symtab.h.
References m_is_objfile_owned.
Referenced by cache_symbol(), fixup_symbol_section(), gdbscm_symbol_symtab(), info_address_command(), objfile(), print_symbol(), set_is_objfile_owned(), set_symbol(), set_symtab(), sympy_dealloc(), sympy_get_symtab(), syscm_get_symbol_map(), and user_select_syms().
|
inline |
Definition at line 1341 of file symtab.h.
References m_line.
Referenced by gdb.dap.scopes._ScopeReference::__init__(), compile_cplus_convert_struct_or_union_members(), compile_cplus_convert_struct_or_union_methods(), convert_one_symbol(), convert_one_symbol(), decode_digits_ordinary(), find_frame_sal(), gdbscm_symbol_line(), output_debug_symbol(), print_symbol_info(), set_line(), skip_prologue_sal(), symbol_to_sal(), sympy_line(), gdb.dap.scopes._ScopeReference::to_object(), and user_select_syms().
|
inline |
Definition at line 1281 of file symtab.h.
References domain(), and symbol_matches_domain().
Referenced by block_lookup_symbol_primary(), find_label_symbols_in_block(), info_classes_command(), info_selectors_command(), and lookup_symbol_in_objfile_symtabs().
struct objfile * symbol::objfile | ( | ) | const |
Definition at line 6482 of file symtab.c.
References is_objfile_owned(), and owner.
Referenced by expr::check_objfile(), find_function_in_inferior(), find_function_start_sal(), find_gnu_ifunc(), frapy_block(), gdbscm_frame_block(), info_address_command(), jump_command(), block::objfile(), pending_framepy_block(), print_symbol(), language_defn::read_var_value(), set_symbol(), skip_prologue_sal(), sympy_dealloc(), and syscm_get_symbol_map().
|
inline |
Definition at line 1264 of file symtab.h.
References m_aclass_index.
Referenced by add_data_symbol(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), common_block_end(), define_symbol(), dwarf2_const_value(), dwarf2_symbol_mark_computed(), finalize_symtab(), fixup_go_packaging(), mark_common_block_symbol_computed(), mdebug_expand_psymtab(), new_symbol(), parse_symbol(), patch_block_stabs(), process_coff_symbol(), process_xcoff_symbol(), read_alias(), read_enum_type(), scan_file_globals(), and var_decode_location().
|
inline |
Definition at line 1291 of file symtab.h.
References domain(), and m_domain.
Referenced by add_data_symbol(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), define_symbol(), finalize_symtab(), fixup_go_packaging(), mdebug_expand_psymtab(), new_symbol(), parse_procedure(), parse_symbol(), patch_block_stabs(), process_coff_symbol(), process_xcoff_symbol(), read_enum_type(), and write_ambiguous_var().
|
inline |
Definition at line 1311 of file symtab.h.
References is_argument(), and m_is_argument.
Referenced by define_symbol(), new_symbol(), parse_symbol(), and process_coff_symbol().
|
inline |
|
inline |
Definition at line 1321 of file symtab.h.
References is_inlined(), and m_is_inlined.
Referenced by new_symbol().
|
inline |
Definition at line 1301 of file symtab.h.
References is_objfile_owned(), and m_is_objfile_owned.
Referenced by language_arch_info::type_and_symbol::alloc_type_symbol().
|
inline |
Definition at line 1346 of file symtab.h.
References line(), and m_line.
Referenced by define_symbol(), and new_symbol().
void symbol::set_symtab | ( | struct symtab * | symtab | ) |
Definition at line 6510 of file symtab.c.
References is_objfile_owned(), owner, and symtab.
Referenced by add_symbol(), buildsym_compunit::end_compunit_symtab_with_blockvector(), finalize_symtab(), new_symbol(), and set_missing_symtab().
|
inline |
Definition at line 1336 of file symtab.h.
References m_type, and type().
Referenced by add_data_symbol(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), common_block_end(), define_symbol(), finalize_symtab(), fixup_go_packaging(), mdebug_expand_psymtab(), new_symbol(), parse_procedure(), parse_symbol(), patch_block_stabs(), process_coff_symbol(), process_xcoff_symbol(), and read_enum_type().
|
inline |
Definition at line 1369 of file symtab.h.
References general_symbol_info::address, and general_symbol_info::m_value.
Referenced by define_symbol(), new_symbol(), parse_symbol(), process_coff_symbol(), process_xcoff_symbol(), relocate_one_symbol(), scan_file_globals(), and var_decode_location().
|
inline |
Definition at line 1396 of file symtab.h.
References general_symbol_info::block, and general_symbol_info::m_value.
Referenced by finalize_symtab(), buildsym_compunit::finish_block_internal(), and parse_symbol().
|
inline |
Definition at line 1379 of file symtab.h.
References general_symbol_info::bytes, and general_symbol_info::m_value.
Referenced by define_symbol(), dwarf2_const_value(), mdebug_expand_psymtab(), and parse_symbol().
|
inline |
Definition at line 1406 of file symtab.h.
References general_symbol_info::m_value.
Referenced by common_block_end(), define_symbol(), parse_symbol(), patch_opaque_types(), process_coff_symbol(), and scan_file_globals().
|
inline |
Definition at line 1389 of file symtab.h.
References general_symbol_info::common_block, and general_symbol_info::m_value.
Referenced by read_common_block().
|
inline |
Definition at line 1356 of file symtab.h.
References general_symbol_info::m_value, and value.
Referenced by coff_read_enum_type(), coff_symtab_read(), define_symbol(), dwarf2_const_value(), parse_symbol(), process_coff_symbol(), and read_enum_type().
struct symtab * symbol::symtab | ( | ) | const |
|
inline |
Definition at line 1331 of file symtab.h.
References m_type.
Referenced by ada_find_any_type(), ada_get_tcb_types_info(), ada_imported_read_variable(), ada_is_exception_sym(), ada_print_symbol_signature(), ada_resolve_enum(), ada_resolve_function(), ada_tasks_inferior_data_sniffer(), address_of_variable(), basic_lookup_transparent_type_1(), basic_lookup_transparent_type_quick(), language_arch_info::bool_type(), bpfinishpy_init(), c_print_typedef(), c_type_print_template_args(), call_site_find_chain_2(), check_typedef(), classify_inner_name(), classify_inner_name(), classify_name(), classify_name(), cleanup_undefined_types_1(), collection_list::collect_symbol(), compile_object_load(), compile_object_run(), completion_list_add_fields(), convert_one_symbol(), convert_one_symbol(), cp_lookup_bare_symbol(), cp_lookup_rtti_type(), cp_search_static_and_baseclasses(), d_lookup_symbol(), define_symbol(), expr::ada_var_value_operation::do_generate_ax(), expr::dump_for_expression(), dwarf2_const_value(), eval_op_var_entry_value(), expr::ada_var_value_operation::evaluate(), expr::var_value_operation::evaluate(), expr::adl_func_operation::evaluate(), expr::var_value_operation::evaluate_for_address(), expr::var_value_operation::evaluate_funcall(), expr::rust_structop::evaluate_funcall(), evaluate_var_value(), expr::var_value_operation::evaluate_with_coercion(), fbsd_fetch_rtld_offsets(), find_function_type(), find_method(), find_oload_champ(), find_overload_match(), find_primitive_type(), buildsym_compunit::finish_block_internal(), finish_command(), fix_common_block(), func_addr_to_tail_call_list(), func_verify_no_selftailcall(), gcc_cplus_symbol_address(), gcc_symbol_address(), gdbscm_symbol_type(), gen_var_ref(), generate_c_for_for_one_variable(), get_out_value_type(), get_regs_type(), get_return_value(), get_symbol_field_type(), gnuv3_get_typeid_type(), inspect_type(), lesseq_defined_than(), list_arg_or_local(), list_args_or_locals(), locexpr_read_variable(), locexpr_read_variable_at_entry(), loclist_read_variable(), loclist_read_variable_at_entry(), lookup_enum(), lookup_struct(), lookup_struct_typedef(), lookup_symbol_aux(), lookup_template_type(), lookup_typename(), lookup_union(), rust_parser::name_to_operation(), compile_cplus_instance::new_scope(), new_symbol(), old_renaming_is_invisible(), output_debug_symbol(), overload_list_add_symbol(), package_name_p(), parse_procedure(), parse_symbol(), patch_opaque_types(), print_frame_args(), print_symbol(), m2_language::print_typedef(), print_unpacked_pointer(), process_coff_symbol(), read_frame_arg(), read_type(), language_defn::read_var_value(), remove_extra_symbols(), replace_typedefs(), expr::ada_var_value_operation::resolve(), rust_parser::rust_lookup_type(), select_possible_type_sym(), set_type(), finish_command_fsm::should_stop(), sparc32_struct_return_from_sym(), symbol_is_function_or_method(), symbol_to_info_string(), symbols_are_identical_enums(), sympy_get_type(), treg_matches_sym_type_name(), type_name_to_scope(), typy_template_argument(), user_select_syms(), value_maybe_namespace_elt(), value_nsstring(), pascal_language::value_print_inner(), write_var_or_type(), yylex(), yylex(), and yyparse().
|
inline |
Definition at line 1361 of file symtab.h.
References get_symbol_address(), general_symbol_info::m_value, and maybe_copied.
Referenced by ada_tasks_inferior_data_sniffer(), collection_list::collect_symbol(), compile_cplus_convert_struct_or_union_members(), convert_one_symbol(), convert_one_symbol(), fixup_symbol_section(), gen_var_ref(), info_address_command(), lesseq_defined_than(), new_symbol(), print_symbol(), process_xcoff_symbol(), language_defn::read_var_value(), relocate_one_symbol(), scan_file_globals(), symbol_to_sal(), and var_decode_location().
|
inline |
Definition at line 1549 of file symtab.h.
References general_symbol_info::m_value, and SYMBOL_BLOCK_OPS.
Referenced by ada_alias_get_block_value(), build_address_symbolic(), compile_cplus_convert_struct_or_union_methods(), compile_object_run(), convert_one_symbol(), convert_one_symbol(), cp_search_static_and_baseclasses(), dwarf2_find_location_expression(), find_function_alias_target(), find_function_start_sal(), find_function_type(), find_gnu_ifunc(), find_label_symbols(), func_addr_to_tail_call_list(), gcc_cplus_symbol_address(), gcc_symbol_address(), gen_var_ref(), get_pc_function_start(), info_address_command(), inside_main_func(), mips_make_symbol_special(), parse_procedure(), prepare_one_step(), print_symbol(), process_event_stop_test(), language_defn::read_var_value(), skip_prologue_sal(), value_fn_field(), watchpoint_check(), and yyparse().
|
inline |
Definition at line 1374 of file symtab.h.
References general_symbol_info::m_value.
Referenced by find_proc_desc(), parse_procedure(), print_symbol(), and language_defn::read_var_value().
|
inline |
Definition at line 1401 of file symtab.h.
References general_symbol_info::chain, and general_symbol_info::m_value.
Referenced by patch_opaque_types(), and scan_file_globals().
|
inline |
Definition at line 1384 of file symtab.h.
References general_symbol_info::m_value.
|
inline |
Definition at line 1351 of file symtab.h.
References general_symbol_info::m_value.
Referenced by coff_read_enum_type(), coff_reg_to_regnum(), collection_list::collect_symbol(), convert_one_symbol(), convert_one_symbol(), define_symbol(), gen_sym_offset(), gen_var_ref(), info_address_command(), lesseq_defined_than(), mdebug_reg_to_regnum(), parse_symbol(), print_frame_args(), print_symbol(), process_coff_symbol(), read_enum_type(), language_defn::read_var_value(), stab_reg_to_regnum(), symbols_are_identical_enums(), and validate_actionline().
struct gdbarch * symbol::arch |
Definition at line 1460 of file symtab.h.
Referenced by language_arch_info::type_and_symbol::alloc_type_symbol(), compile_dwarf_bounds_to_c(), compile_dwarf_expr_to_c(), disassemble_dwarf_expression(), do_compile_dwarf_expr_to_c(), dwarf2_compile_expr_to_ax(), block::gdbarch(), info_address_command(), language_defn::read_var_value(), sparc_analyze_control_transfer(), and syscm_get_symbol_map().
Definition at line 1524 of file symtab.h.
Referenced by expand_hashtable(), insert_symbol_hashed(), iter_match_first_hashed(), iter_match_next_hashed(), iterator_next_hashed(), new_symbol(), and size_hashed().
unsigned int symbol::m_aclass_index |
Definition at line 1471 of file symtab.h.
Referenced by impl(), and set_aclass_index().
bool symbol::m_artificial |
Definition at line 1499 of file symtab.h.
Referenced by is_artificial(), and set_is_artificial().
__extension__ enum domain_enum symbol::m_domain |
Definition at line 1465 of file symtab.h.
Referenced by domain(), and set_domain().
unsigned symbol::m_is_argument |
Definition at line 1480 of file symtab.h.
Referenced by is_argument(), and set_is_argument().
unsigned symbol::m_is_inlined |
Definition at line 1483 of file symtab.h.
Referenced by is_inlined(), and set_is_inlined().
unsigned int symbol::m_is_objfile_owned |
Definition at line 1476 of file symtab.h.
Referenced by is_objfile_owned(), and set_is_objfile_owned().
unsigned int symbol::m_line = 0 |
Definition at line 1508 of file symtab.h.
Referenced by line(), and set_line().
Definition at line 1447 of file symtab.h.
Referenced by set_type(), and type().
unsigned symbol::maybe_copied |
Definition at line 1491 of file symtab.h.
Referenced by get_symbol_address(), new_symbol(), and value_address().
union { ... } symbol::owner |
Referenced by language_arch_info::type_and_symbol::alloc_type_symbol(), objfile(), set_symtab(), and symbol().
__extension__ enum symbol_subclass_kind symbol::subclass |
Definition at line 1495 of file symtab.h.
Referenced by is_cplus_template_function(), read_func_scope(), read_variable(), and rust_get_trait_object_pointer().
struct symtab * symbol::symtab |
Definition at line 1457 of file symtab.h.
Referenced by btrace_call_history_src_line(), btrace_compute_src_line_range(), cache_symbol(), symbol_search::compare_search_syms(), compare_symbols(), compile_cplus_convert_struct_or_union_members(), compile_cplus_convert_struct_or_union_methods(), convert_one_symbol(), convert_one_symbol(), buildsym_compunit::end_compunit_symtab_with_blockvector(), find_frame_sal(), find_label_symbols(), find_method(), find_symbol_at_address(), fixup_go_packaging(), ftrace_function_switched(), ftrace_print_filename(), gdbscm_symbol_symtab(), get_out_value_type(), info_module_subcommand(), output_module_symbols_in_single_module_and_file(), print_symbol_info(), process_structure_scope(), read_func_scope(), select_source_symtab(), set_missing_symtab(), set_symbol(), set_symtab(), skip_prologue_sal(), symbol_to_sal(), sympy_dealloc(), sympy_get_symtab(), and user_select_syms().