GDB (xrefs)
|
#include "attribute.h"
Public Member Functions | |
unrelocated_addr | as_address () const |
const char * | as_string () const |
dwarf_block * | as_block () const |
ULONGEST | as_signature () const |
LONGEST | as_signed () const |
ULONGEST | as_unsigned_reprocess () const |
ULONGEST | as_unsigned () const |
bool | is_nonnegative () const |
ULONGEST | as_nonnegative () const |
bool | form_is_section_offset () const |
bool | form_is_constant () const |
bool | form_is_ref () const |
bool | form_is_block () const |
bool | form_is_string () const |
bool | form_is_unsigned () const |
bool | form_is_signed () const |
bool | form_requires_reprocessing () const |
sect_offset | get_ref_die_offset () const |
LONGEST | constant_value (int default_value) const |
bool | canonical_string_p () const |
void | set_string_noncanonical (const char *str) |
void | set_string_canonical (const char *str) |
void | set_block (dwarf_block *blk) |
void | set_signature (ULONGEST signature) |
void | set_signed (LONGEST snd) |
void | set_unsigned (ULONGEST unsnd) |
void | set_unsigned_reprocess (ULONGEST unsnd) |
void | set_address (unrelocated_addr addr) |
bool | requires_reprocessing_p () const |
dwarf_defaulted_attribute | defaulted () const |
dwarf_virtuality_attribute | as_virtuality () const |
bool | as_boolean () const |
Public Attributes | ||
__extension__ enum dwarf_attribute | name: 15 | |
unsigned int | requires_reprocessing: 1 | |
__extension__ enum dwarf_form | form: 15 | |
unsigned int | string_is_canonical: 1 | |
union { | ||
const char * str | ||
struct dwarf_block * blk | ||
ULONGEST unsnd | ||
LONGEST snd | ||
unrelocated_addr addr | ||
ULONGEST signature | ||
} | u | |
Private Member Functions | |
void | get_ref_die_offset_complaint () const |
Definition at line 44 of file attribute.h.
unrelocated_addr attribute::as_address | ( | ) | const |
Definition at line 35 of file attribute.c.
References addr, form, requires_reprocessing, and u.
Referenced by dump_die_shallow(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), dwarf2_find_base_address(), dwarf2_get_pc_bounds(), dwarf2_record_block_ranges(), new_symbol(), read_call_site_scope(), and cooked_indexer::scan_attributes().
|
inline |
Definition at line 55 of file attribute.h.
References form_is_block(), and u.
Referenced by attr_to_dynamic_prop(), dump_die_shallow(), dwarf2_add_member_fn(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), dwarf2_fetch_die_loc_sect_off(), dwarf2_symbol_mark_computed(), get_mpz(), handle_member_location(), handle_member_location(), handle_variant(), mark_common_block_symbol_computed(), quirk_ada_thick_pointer(), read_call_site_scope(), recognize_bound_expression(), cooked_indexer::scan_attributes(), and var_decode_location().
bool attribute::as_boolean | ( | ) | const |
Definition at line 264 of file attribute.c.
References constant_value(), form, and u.
Referenced by dump_die_shallow(), dwarf2_add_member_fn(), dwarf2_flag_true_p(), new_symbol(), prototyped_function_p(), read_func_scope(), read_subroutine_type(), cooked_indexer::scan_attributes(), and var_decl_name().
|
inline |
Definition at line 108 of file attribute.h.
References as_signed(), as_unsigned(), form_is_signed(), and form_is_unsigned().
Referenced by new_symbol(), and read_func_scope().
|
inline |
Definition at line 63 of file attribute.h.
Referenced by dump_die_shallow(), follow_die_sig(), get_DW_AT_signature_type(), and lookup_die_type().
|
inline |
Definition at line 71 of file attribute.h.
References form_is_signed(), and u.
Referenced by as_nonnegative(), dump_die_shallow(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), and is_nonnegative().
const char * attribute::as_string | ( | ) | const |
Definition at line 83 of file attribute.c.
References form_is_string(), requires_reprocessing, and u.
Referenced by anonymous_struct_prefix(), dump_die_shallow(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), dwarf2_name(), dwarf2_string_attr(), cooked_indexer::scan_attributes(), and var_decl_name().
|
inline |
Definition at line 88 of file attribute.h.
References form_is_unsigned(), requires_reprocessing, and u.
Referenced by die_info::addr_base(), as_nonnegative(), dump_die_shallow(), dw2_get_file_names_reader(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), dwarf2_get_pc_bounds(), dwarf2_record_block_ranges(), dwarf2_symbol_mark_computed(), fill_in_loclist_baton(), get_mpz(), get_type_unit_group(), die_info::gnu_ranges_base(), handle_DW_AT_stmt_list(), lookup_dwo_id(), read_array_type(), read_attribute_value(), read_call_site_scope(), read_file_scope(), read_set_type(), read_toplevel_die(), die_info::rnglists_base(), cooked_indexer::scan_attributes(), and dwarf2_cu::setup_type_unit_groups().
|
inline |
Definition at line 79 of file attribute.h.
References form_requires_reprocessing(), requires_reprocessing, and u.
Referenced by read_attribute_reprocess().
dwarf_virtuality_attribute attribute::as_virtuality | ( | ) | const |
Definition at line 241 of file attribute.c.
References complaint, constant_value(), form_is_constant(), and value.
Referenced by dwarf2_add_field(), and dwarf2_add_member_fn().
|
inline |
Definition at line 201 of file attribute.h.
References form_is_string(), and string_is_canonical.
Referenced by anonymous_struct_prefix(), dump_die_shallow(), dwarf2_name(), and read_attribute_reprocess().
LONGEST attribute::constant_value | ( | int | default_value | ) | const |
Definition at line 147 of file attribute.c.
References complaint, dwarf_form_name(), form, and u.
Referenced by as_boolean(), as_virtuality(), attr_to_dynamic_prop(), defaulted(), dwarf2_access_attribute(), dwarf2_add_field(), dwarf2_const_value_data(), dwarf2_func_is_main_p(), finish_fixed_point_type(), get_alignment(), get_mpz(), handle_member_location(), handle_member_location(), handle_variant(), mark_common_block_symbol_computed(), new_symbol(), prepare_one_comp_unit(), read_array_order(), read_array_type(), read_base_type(), read_decl_line(), read_enumeration_type(), read_structure_type(), read_subrange_type(), read_subroutine_type(), read_tag_pointer_type(), read_tag_reference_type(), read_tag_string_type(), and cooked_indexer::scan_attributes().
dwarf_defaulted_attribute attribute::defaulted | ( | ) | const |
Definition at line 218 of file attribute.c.
References complaint, constant_value(), form_is_constant(), and value.
Referenced by dwarf2_add_member_fn().
bool attribute::form_is_block | ( | ) | const |
Definition at line 94 of file attribute.c.
References form.
Referenced by as_block(), attr_to_dynamic_prop(), dwarf2_add_member_fn(), dwarf2_fetch_die_loc_sect_off(), dwarf2_symbol_mark_computed(), get_mpz(), handle_member_location(), handle_member_location(), mark_common_block_symbol_computed(), quirk_ada_thick_pointer(), read_call_site_scope(), read_common_block(), recognize_bound_expression(), cooked_indexer::scan_attributes(), set_block(), and var_decode_location().
bool attribute::form_is_constant | ( | ) | const |
Definition at line 118 of file attribute.c.
References form.
Referenced by as_virtuality(), attr_to_dynamic_prop(), defaulted(), dwarf2_add_field(), dwarf2_get_pc_bounds(), dwarf2_record_block_ranges(), get_alignment(), handle_member_location(), handle_member_location(), handle_variant(), mark_common_block_symbol_computed(), read_base_type(), read_common_block(), read_decl_line(), read_structure_type(), read_subrange_type(), read_tag_string_type(), and cooked_indexer::scan_attributes().
|
inline |
Definition at line 150 of file attribute.h.
References form.
Referenced by attr_to_dynamic_prop(), dwarf2_add_field(), follow_die_ref_or_sig(), get_DW_AT_signature_type(), get_ref_die_offset(), handle_variant_part(), lookup_die_type(), read_attribute_value(), read_call_site_scope(), and rust_containing_type().
bool attribute::form_is_section_offset | ( | ) | const |
Definition at line 107 of file attribute.c.
References form.
Referenced by attr_to_dynamic_prop(), dwarf2_add_member_fn(), dwarf2_fetch_die_loc_sect_off(), dwarf2_symbol_mark_computed(), handle_member_location(), handle_member_location(), and read_common_block().
bool attribute::form_is_signed | ( | ) | const |
Definition at line 193 of file attribute.c.
References form.
Referenced by as_nonnegative(), as_signed(), and is_nonnegative().
bool attribute::form_is_string | ( | ) | const |
Definition at line 67 of file attribute.c.
References form.
Referenced by as_string(), canonical_string_p(), set_string_canonical(), and set_string_noncanonical().
bool attribute::form_is_unsigned | ( | ) | const |
Definition at line 169 of file attribute.c.
References form.
Referenced by as_nonnegative(), as_unsigned(), dw2_get_file_names_reader(), dwarf2_get_pc_bounds(), dwarf2_record_block_ranges(), get_mpz(), get_type_unit_group(), handle_DW_AT_stmt_list(), is_nonnegative(), lookup_dwo_id(), read_array_type(), read_call_site_scope(), read_file_scope(), read_set_type(), read_toplevel_die(), set_unsigned(), and dwarf2_cu::setup_type_unit_groups().
bool attribute::form_requires_reprocessing | ( | ) | const |
Definition at line 201 of file attribute.c.
References form.
Referenced by as_unsigned_reprocess(), and set_unsigned_reprocess().
|
inline |
Definition at line 182 of file attribute.h.
References form_is_ref(), get_ref_die_offset_complaint(), and u.
Referenced by follow_die_ref(), cooked_indexer::index_imported_unit(), lookup_die_type(), process_imported_unit_die(), read_alias(), read_call_site_scope(), cooked_indexer::scan_attributes(), and skip_one_die().
|
private |
Definition at line 138 of file attribute.c.
References complaint, dwarf_form_name(), and form.
Referenced by get_ref_die_offset().
|
inline |
Definition at line 97 of file attribute.h.
References as_signed(), form_is_signed(), and form_is_unsigned().
Referenced by new_symbol(), and read_func_scope().
|
inline |
Definition at line 275 of file attribute.h.
References requires_reprocessing.
|
inline |
Definition at line 264 of file attribute.h.
References addr, form, requires_reprocessing, and u.
Referenced by read_attribute_reprocess(), and read_attribute_value().
|
inline |
Definition at line 226 of file attribute.h.
References blk, form_is_block(), and u.
Referenced by read_attribute_value().
|
inline |
Definition at line 233 of file attribute.h.
References form, signature, and u.
Referenced by read_attribute_value().
|
inline |
Definition at line 240 of file attribute.h.
Referenced by read_attribute_value().
|
inline |
Definition at line 218 of file attribute.h.
References form_is_string(), str, string_is_canonical, and u.
Referenced by dwarf2_name().
|
inline |
Definition at line 209 of file attribute.h.
References form_is_string(), requires_reprocessing, str, string_is_canonical, and u.
Referenced by read_attribute_reprocess(), read_attribute_value(), and read_cutu_die_from_dwo().
|
inline |
Definition at line 247 of file attribute.h.
References form_is_unsigned(), requires_reprocessing, u, and unsnd.
Referenced by read_attribute_reprocess(), and read_attribute_value().
|
inline |
Definition at line 256 of file attribute.h.
References form_requires_reprocessing(), requires_reprocessing, u, and unsnd.
Referenced by read_attribute_value().
unrelocated_addr attribute::addr |
Definition at line 322 of file attribute.h.
Referenced by as_address(), and set_address().
struct dwarf_block* attribute::blk |
Definition at line 319 of file attribute.h.
Referenced by set_block().
__extension__ enum dwarf_form attribute::form |
Definition at line 309 of file attribute.h.
Referenced by as_address(), as_boolean(), as_signature(), attr_to_dynamic_prop(), constant_value(), dump_die_shallow(), dwarf2_const_value_attr(), dwarf2_fetch_constant_bytes(), follow_die_ref(), follow_die_ref_or_sig(), follow_die_sig(), form_is_block(), form_is_constant(), form_is_ref(), form_is_section_offset(), form_is_signed(), form_is_string(), form_is_unsigned(), form_requires_reprocessing(), get_DW_AT_signature_type(), get_mpz(), get_ref_die_offset_complaint(), cooked_indexer::index_imported_unit(), lookup_die_type(), process_imported_unit_die(), read_attribute_reprocess(), read_attribute_value(), read_cutu_die_from_dwo(), cooked_indexer::scan_attributes(), set_address(), set_signature(), set_signed(), and skip_one_die().
__extension__ enum dwarf_attribute attribute::name |
Definition at line 296 of file attribute.h.
Referenced by gdb.printing.FlagEnumerationPrinter::__call__(), gdb.dap.varref.BaseReference::__init__(), gdb.disassembler.Disassembler::__init__(), gdb.printing.SubPrettyPrinter::__init__(), gdb.types.TypePrinter::__init__(), gdb.xmethod.XMethod::__init__(), gdb.xmethod.XMethodMatcher::__init__(), gdb.printing.PrettyPrinter::__init__(), attr_to_dynamic_prop(), dump_die_shallow(), dwarf2_attr(), finish_fixed_point_type(), cooked_indexer::index_imported_unit(), lookup_die_type(), read_attribute(), read_attribute_value(), read_cutu_die_from_dwo(), cooked_indexer::scan_attributes(), and gdb.dap.varref.BaseReference::to_object().
unsigned int attribute::requires_reprocessing |
Definition at line 307 of file attribute.h.
Referenced by as_address(), as_string(), as_unsigned(), as_unsigned_reprocess(), requires_reprocessing_p(), set_address(), set_string_noncanonical(), set_unsigned(), and set_unsigned_reprocess().
ULONGEST attribute::signature |
Definition at line 323 of file attribute.h.
Referenced by set_signature().
LONGEST attribute::snd |
Definition at line 321 of file attribute.h.
Referenced by set_signed().
const char* attribute::str |
Definition at line 318 of file attribute.h.
Referenced by dwarf2_string_attr(), set_string_canonical(), and set_string_noncanonical().
unsigned int attribute::string_is_canonical |
Definition at line 314 of file attribute.h.
Referenced by canonical_string_p(), read_attribute(), set_string_canonical(), and set_string_noncanonical().
union { ... } attribute::u |
Referenced by as_address(), as_block(), as_boolean(), as_signature(), as_signed(), as_string(), as_unsigned(), as_unsigned_reprocess(), constant_value(), get_ref_die_offset(), set_address(), set_block(), set_signature(), set_signed(), set_string_canonical(), set_string_noncanonical(), set_unsigned(), and set_unsigned_reprocess().
ULONGEST attribute::unsnd |
Definition at line 320 of file attribute.h.
Referenced by set_unsigned(), and set_unsigned_reprocess().