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 |
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 short | line () const |
void | set_line (unsigned short 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) |
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 short | 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 | |
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 1198 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::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(), remove_irrelevant_renamings(), expr::ada_var_value_operation::resolve(), rust_get_trait_object_pointer(), symbol_object_to_symbol(), write_var_or_type(), and yyparse().
|
default |
|
inline |
Definition at line 1235 of file symtab.h.
References symbol_impl::aclass, and impl().
Referenced by ada_add_block_symbols(), ada_add_exceptions_from_frame(), ada_exception_sal(), ada_find_any_type_symbol(), ada_has_this_exception_support(), ada_is_exception_sym(), ada_parse_renaming(), global_symbol_searcher::add_matching_symbols(), collect_info::add_symbol(), best_symbol(), better_symbol(), c_type_print_template_args(), expr::check_constant(), classify_inner_name(), classify_name(), cleanup_undefined_types_1(), collection_list::collect_symbol(), completion_list_add_fields(), completion_list_add_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(), find_symbol_at_address(), 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(), info_common_command_for_block(), info_scope_command(), iterate_over_block_locals(), lesseq_defined_than(), list_args_or_locals(), lookup_typename(), mi_should_print(), mips_make_symbol_special(), mylookup_symbol(), rust_parser::name_to_operation(), new_symbol(), old_renaming_is_invisible(), match_data::operator()(), package_name_p(), patch_opaque_types(), prepare_one_step(), print_frame_args(), print_symbol(), read_type(), language_defn::read_var_value(), relocate_one_symbol(), 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(), and yyparse().
struct gdbarch * symbol::arch | ( | ) | const |
|
inline |
Definition at line 1240 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(), global_symbol_searcher::add_matching_symbols(), add_symtab_completions(), best_symbol(), better_symbol(), block_find_symbol(), block_lookup_symbol(), block_lookup_symbol_primary(), cleanup_undefined_types_1(), completion_list_add_symbol(), convert_one_symbol(), cp_lookup_symbol_imports_or_template(), default_collect_symbol_completion_matches_break_on(), eq_symbol_entry(), expr::ada_var_value_operation::evaluate(), expr::ada_funcall_operation::evaluate(), find_label_symbols_in_block(), gdbpy_lookup_global_symbol(), gdbpy_lookup_static_symbol(), gdbpy_lookup_symbol(), gdbscm_lookup_global_symbol(), gdbscm_lookup_symbol(), info_common_command_for_block(), iterate_over_block_locals(), iterate_over_symbols(), lesseq_defined_than(), lookup_symbol_in_objfile_symtabs(), mylookup_symbol(), objfpy_lookup_global_symbol(), objfpy_lookup_static_symbol(), patch_opaque_types(), 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 1230 of file symtab.h.
References m_aclass_index, and symbol_impls.
Referenced by aclass().
|
inline |
Definition at line 1260 of file symtab.h.
References m_is_argument.
Referenced by ada_add_block_symbols(), block_lookup_symbol(), check_exception_resume(), define_symbol(), buildsym_compunit::finish_block_internal(), gdbscm_symbol_argument_p(), gdbscm_symbol_variable_p(), info_address_command(), info_scope_command(), iterate_over_block_arg_vars(), iterate_over_block_locals(), list_arg_or_local(), list_args_or_locals(), mi_should_print(), match_data::operator()(), parse_symbol(), print_frame_args(), print_symbol(), set_is_argument(), sympy_is_argument(), sympy_is_variable(), and yyparse().
|
inline |
Definition at line 1369 of file symtab.h.
References m_artificial.
Referenced by ada_language::symbol_printing_suppressed().
|
inline |
Definition at line 1280 of file symtab.h.
References subclass, and SYMBOL_TEMPLATE.
Referenced by cp_lookup_symbol_imports_or_template().
|
inline |
Definition at line 1270 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 1250 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 1295 of file symtab.h.
References m_line.
Referenced by global_symbol_searcher::add_matching_symbols(), compile_cplus_convert_struct_or_union_members(), compile_cplus_convert_struct_or_union_methods(), 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(), and user_select_syms().
struct objfile * symbol::objfile | ( | ) | const |
Definition at line 6477 of file symtab.c.
References is_objfile_owned(), and owner.
Referenced by block_objfile(), expr::check_objfile(), find_function_in_inferior(), find_function_start_sal(), find_gnu_ifunc(), fixup_symbol_section(), frapy_block(), gdbscm_frame_block(), info_address_command(), jump_command(), print_symbol(), language_defn::read_var_value(), set_block(), set_symbol(), skip_prologue_sal(), sympy_dealloc(), and syscm_get_symbol_map().
|
inline |
Definition at line 1225 of file symtab.h.
References m_aclass_index.
Referenced by add_data_symbol(), add_stt_entries(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), common_block_end(), ctf_add_enum_member_cb(), ctf_add_var_cb(), 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(), set_symbol_address(), and var_decode_location().
|
inline |
Definition at line 1245 of file symtab.h.
References domain(), and m_domain.
Referenced by add_data_symbol(), add_stt_entries(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), ctf_add_enum_member_cb(), ctf_add_var_cb(), 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 1265 of file symtab.h.
References is_argument(), and m_is_argument.
Referenced by define_symbol(), new_symbol(), and process_coff_symbol().
|
inline |
|
inline |
Definition at line 1275 of file symtab.h.
References is_inlined(), and m_is_inlined.
Referenced by new_symbol().
|
inline |
Definition at line 1255 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 1300 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 6505 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 1290 of file symtab.h.
References m_type, and type().
Referenced by add_data_symbol(), add_stt_entries(), language_arch_info::type_and_symbol::alloc_type_symbol(), coff_read_enum_type(), common_block_end(), ctf_add_enum_member_cb(), ctf_add_var_cb(), 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 1323 of file symtab.h.
References general_symbol_info::address, and general_symbol_info::m_value.
Referenced by define_symbol(), fix_common_block(), new_symbol(), parse_symbol(), process_coff_symbol(), process_xcoff_symbol(), relocate_one_symbol(), scan_file_globals(), set_symbol_address(), and var_decode_location().
|
inline |
Definition at line 1353 of file symtab.h.
References general_symbol_info::block, and general_symbol_info::m_value.
Referenced by finalize_symtab(), and buildsym_compunit::finish_block_internal().
|
inline |
Definition at line 1333 of file symtab.h.
References general_symbol_info::bytes, and general_symbol_info::m_value.
Referenced by define_symbol(), dwarf2_const_value(), and mdebug_expand_psymtab().
|
inline |
Definition at line 1363 of file symtab.h.
References general_symbol_info::m_value.
Referenced by common_block_end(), define_symbol(), patch_opaque_types(), process_coff_symbol(), and scan_file_globals().
|
inline |
Definition at line 1343 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 1310 of file symtab.h.
References general_symbol_info::m_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 1285 of file symtab.h.
References m_type.
Referenced by ada_find_any_type(), ada_get_tcb_types_info(), ada_is_exception_sym(), ada_print_symbol_signature(), ada_resolve_enum(), ada_resolve_function(), ada_tasks_inferior_data_sniffer(), global_symbol_searcher::add_matching_symbols(), add_symtab_completions(), address_of_variable(), basic_lookup_transparent_type_1(), basic_lookup_transparent_type_quick(), block_find_non_opaque_type(), block_find_non_opaque_type_preferred(), language_arch_info::bool_type(), bpfinishpy_init(), c_print_typedef(), c_type_print_template_args(), call_site_find_chain_2(), check_field(), check_typedef(), classify_inner_name(), classify_name(), cleanup_undefined_types_1(), coff_read_enum_type(), collection_list::collect_symbol(), compile_object_load(), compile_object_run(), completion_list_add_fields(), convert_one_symbol(), cp_lookup_bare_symbol(), cp_lookup_rtti_type(), cp_search_static_and_baseclasses(), d_lookup_symbol(), default_collect_symbol_completion_matches_break_on(), define_symbol(), 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(), info_scope_command(), 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_enum_type(), read_frame_arg(), read_type(), language_defn::read_var_value(), remove_extra_symbols(), replace_typedefs(), expr::ada_var_value_operation::resolve(), return_command(), 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(), and yyparse().
|
inline |
Definition at line 1315 of file symtab.h.
References get_symbol_address(), general_symbol_info::m_value, and maybe_copied.
Referenced by ada_add_exceptions_from_frame(), ada_add_global_exceptions(), ada_tasks_inferior_data_sniffer(), collection_list::collect_symbol(), compile_cplus_convert_struct_or_union_members(), convert_one_symbol(), find_symbol_at_address(), fix_common_block(), fixup_symbol_section(), gen_var_ref(), info_address_command(), info_scope_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 1348 of file symtab.h.
References general_symbol_info::m_value.
Referenced by build_address_symbolic(), compile_cplus_convert_struct_or_union_methods(), compile_object_run(), 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(), fixup_symbol_section(), func_addr_to_tail_call_list(), gcc_cplus_symbol_address(), gcc_symbol_address(), gen_var_ref(), get_pc_function_start(), info_address_command(), info_scope_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 1328 of file symtab.h.
References general_symbol_info::m_value.
Referenced by find_proc_desc(), info_scope_command(), parse_procedure(), print_symbol(), and language_defn::read_var_value().
|
inline |
Definition at line 1358 of file symtab.h.
References general_symbol_info::m_value.
Referenced by patch_opaque_types(), and scan_file_globals().
|
inline |
Definition at line 1338 of file symtab.h.
References general_symbol_info::m_value.
Referenced by info_common_command_for_block().
|
inline |
Definition at line 1305 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(), define_symbol(), gen_sym_offset(), gen_var_ref(), info_address_command(), info_scope_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 1417 of file symtab.h.
Referenced by language_arch_info::type_and_symbol::alloc_type_symbol(), block_gdbarch(), compile_dwarf_bounds_to_c(), compile_dwarf_expr_to_c(), disassemble_dwarf_expression(), do_compile_dwarf_expr_to_c(), dwarf2_compile_expr_to_ax(), info_address_command(), info_scope_command(), language_defn::read_var_value(), sparc_analyze_control_transfer(), and syscm_get_symbol_map().
struct symbol* symbol::hash_next = nullptr |
Definition at line 1485 of file symtab.h.
Referenced by expand_hashtable(), insert_symbol_hashed(), iter_match_first_hashed(), iter_match_next_hashed(), new_symbol(), and objfile_relocate1().
unsigned int symbol::m_aclass_index |
Definition at line 1428 of file symtab.h.
Referenced by impl(), and set_aclass_index().
bool symbol::m_artificial |
Definition at line 1456 of file symtab.h.
Referenced by is_artificial(), and set_is_artificial().
__extension__ enum domain_enum symbol::m_domain |
Definition at line 1422 of file symtab.h.
Referenced by domain(), and set_domain().
unsigned symbol::m_is_argument |
Definition at line 1437 of file symtab.h.
Referenced by is_argument(), and set_is_argument().
unsigned symbol::m_is_inlined |
Definition at line 1440 of file symtab.h.
Referenced by is_inlined(), and set_is_inlined().
unsigned int symbol::m_is_objfile_owned |
Definition at line 1433 of file symtab.h.
Referenced by is_objfile_owned(), and set_is_objfile_owned().
unsigned short symbol::m_line = 0 |
Definition at line 1469 of file symtab.h.
Referenced by line(), and set_line().
struct type* symbol::m_type = nullptr |
Definition at line 1404 of file symtab.h.
Referenced by set_type(), and type().
unsigned symbol::maybe_copied |
Definition at line 1448 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 1452 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 1414 of file symtab.h.
Referenced by global_symbol_searcher::add_matching_symbols(), 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(), buildsym_compunit::end_compunit_symtab_with_blockvector(), find_frame_sal(), find_label_symbols(), find_method(), find_symbol_at_address(), fixup_go_packaging(), fixup_symbol_section(), 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().