GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Member Functions | List of all members
attribute Struct Reference

#include "attribute.h"

Public Member Functions

unrelocated_addr as_address () const
 
const char * as_string () const
 
dwarf_blockas_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
 

Detailed Description

Definition at line 44 of file attribute.h.

Member Function Documentation

◆ as_address()

unrelocated_addr attribute::as_address ( ) const

◆ as_block()

dwarf_block * attribute::as_block ( ) const
inline

◆ as_boolean()

bool attribute::as_boolean ( ) const

◆ as_nonnegative()

ULONGEST attribute::as_nonnegative ( ) const
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().

◆ as_signature()

ULONGEST attribute::as_signature ( ) const
inline

Definition at line 63 of file attribute.h.

References form, and u.

Referenced by dump_die_shallow(), follow_die_sig(), get_DW_AT_signature_type(), and lookup_die_type().

◆ as_signed()

LONGEST attribute::as_signed ( ) const
inline

◆ as_string()

const char * attribute::as_string ( ) const

◆ as_unsigned()

ULONGEST attribute::as_unsigned ( ) const
inline

◆ as_unsigned_reprocess()

ULONGEST attribute::as_unsigned_reprocess ( ) const
inline

Definition at line 79 of file attribute.h.

References form_requires_reprocessing(), requires_reprocessing, and u.

Referenced by read_attribute_reprocess().

◆ as_virtuality()

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().

◆ canonical_string_p()

bool attribute::canonical_string_p ( ) const
inline

◆ constant_value()

LONGEST attribute::constant_value ( int default_value) const

◆ defaulted()

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().

◆ form_is_block()

bool attribute::form_is_block ( ) const

◆ form_is_constant()

bool attribute::form_is_constant ( ) const

◆ form_is_ref()

bool attribute::form_is_ref ( ) const
inline

◆ form_is_section_offset()

bool attribute::form_is_section_offset ( ) const

◆ form_is_signed()

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().

◆ form_is_string()

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().

◆ form_is_unsigned()

bool attribute::form_is_unsigned ( ) const

◆ form_requires_reprocessing()

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().

◆ get_ref_die_offset()

sect_offset attribute::get_ref_die_offset ( ) const
inline

◆ get_ref_die_offset_complaint()

void attribute::get_ref_die_offset_complaint ( ) const
private

Definition at line 138 of file attribute.c.

References complaint, dwarf_form_name(), and form.

Referenced by get_ref_die_offset().

◆ is_nonnegative()

bool attribute::is_nonnegative ( ) const
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().

◆ requires_reprocessing_p()

bool attribute::requires_reprocessing_p ( ) const
inline

Definition at line 275 of file attribute.h.

References requires_reprocessing.

◆ set_address()

void attribute::set_address ( unrelocated_addr addr)
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().

◆ set_block()

void attribute::set_block ( dwarf_block * blk)
inline

Definition at line 226 of file attribute.h.

References blk, form_is_block(), and u.

Referenced by read_attribute_value().

◆ set_signature()

void attribute::set_signature ( ULONGEST signature)
inline

Definition at line 233 of file attribute.h.

References form, signature, and u.

Referenced by read_attribute_value().

◆ set_signed()

void attribute::set_signed ( LONGEST snd)
inline

Definition at line 240 of file attribute.h.

References form, snd, and u.

Referenced by read_attribute_value().

◆ set_string_canonical()

void attribute::set_string_canonical ( const char * str)
inline

Definition at line 218 of file attribute.h.

References form_is_string(), str, string_is_canonical, and u.

Referenced by dwarf2_name().

◆ set_string_noncanonical()

void attribute::set_string_noncanonical ( const char * str)
inline

◆ set_unsigned()

void attribute::set_unsigned ( ULONGEST unsnd)
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().

◆ set_unsigned_reprocess()

void attribute::set_unsigned_reprocess ( ULONGEST unsnd)
inline

Definition at line 256 of file attribute.h.

References form_requires_reprocessing(), requires_reprocessing, u, and unsnd.

Referenced by read_attribute_value().

Member Data Documentation

◆ addr

unrelocated_addr attribute::addr

Definition at line 322 of file attribute.h.

Referenced by as_address(), and set_address().

◆ blk

struct dwarf_block* attribute::blk

Definition at line 319 of file attribute.h.

Referenced by set_block().

◆ form

__extension__ enum dwarf_form attribute::form

◆ name

__extension__ enum dwarf_attribute attribute::name

◆ requires_reprocessing

unsigned int attribute::requires_reprocessing

◆ signature

ULONGEST attribute::signature

Definition at line 323 of file attribute.h.

Referenced by set_signature().

◆ snd

LONGEST attribute::snd

Definition at line 321 of file attribute.h.

Referenced by set_signed().

◆ str

const char* attribute::str

Definition at line 318 of file attribute.h.

Referenced by dwarf2_string_attr(), set_string_canonical(), and set_string_noncanonical().

◆ string_is_canonical

unsigned int attribute::string_is_canonical

◆ [union]

union { ... } attribute::u

◆ unsnd

ULONGEST attribute::unsnd

Definition at line 320 of file attribute.h.

Referenced by set_unsigned(), and set_unsigned_reprocess().


The documentation for this struct was generated from the following files: