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

#include "read.h"

Inheritance diagram for dwarf2_per_cu_data:
signatured_type

Public Member Functions

 dwarf2_per_cu_data ()
 
bool imported_symtabs_empty () const
 
void imported_symtabs_push (dwarf2_per_cu_data *p)
 
size_t imported_symtabs_size () const
 
void imported_symtabs_free ()
 
const comp_unit_headget_header () const
 
int addr_size () const
 
int offset_size () const
 
int ref_addr_size () const
 
unsigned int length () const
 
void set_length (unsigned int length, bool strict_p=true)
 
short version () const
 
void set_version (short version)
 
dwarf_unit_type unit_type (bool strict_p=true) const
 
void set_unit_type (dwarf_unit_type unit_type)
 
enum language lang (bool strict_p=true) const
 
void set_lang (enum language lang)
 
void free_cached_file_names ()
 

Public Attributes

sect_offset sect_off {}
 
unsigned int is_debug_types: 1
 
unsigned int is_dwz: 1
 
unsigned int reading_dwo_directly: 1
 
unsigned int tu_read: 1
 
packed< bool, 1 > addresses_seen = false
 
packed< bool, 1 > queued
 
packed< bool, 1 > m_header_read_in
 
packed< unsigned int, 1 > mark
 
packed< bool, 1 > files_read
 
std::atomic< bool > scanned
 
unsigned index = 0
 
struct dwarf2_section_infosection = nullptr
 
dwarf2_per_bfdper_bfd = nullptr
 
comp_unit_head m_header
 
std::unique_ptr< file_and_directoryfnd
 
struct quick_file_namesfile_names = nullptr
 
std::vector< dwarf2_per_cu_data * > * imported_symtabs = nullptr
 

Private Attributes

unsigned int m_length = 0
 
unsigned char m_dwarf_version = 0
 
std::atomic< packed< dwarf_unit_type, 1 > > m_unit_type {(dwarf_unit_type)0}
 
std::atomic< packed< language, LANGUAGE_BYTES > > m_lang {language_unknown}
 

Detailed Description

Definition at line 100 of file read.h.

Constructor & Destructor Documentation

◆ dwarf2_per_cu_data()

dwarf2_per_cu_data::dwarf2_per_cu_data ( )
inline

Definition at line 102 of file read.h.

Member Function Documentation

◆ addr_size()

int dwarf2_per_cu_data::addr_size ( ) const

◆ free_cached_file_names()

void dwarf2_per_cu_data::free_cached_file_names ( )

◆ get_header()

const comp_unit_head * dwarf2_per_cu_data::get_header ( ) const

◆ imported_symtabs_empty()

bool dwarf2_per_cu_data::imported_symtabs_empty ( ) const
inline

Definition at line 249 of file read.h.

References imported_symtabs.

Referenced by compute_compunit_symtab_includes(), and recursively_compute_inclusions().

◆ imported_symtabs_free()

void dwarf2_per_cu_data::imported_symtabs_free ( )
inline

Definition at line 273 of file read.h.

References imported_symtabs.

◆ imported_symtabs_push()

void dwarf2_per_cu_data::imported_symtabs_push ( dwarf2_per_cu_data * p)
inline

Definition at line 256 of file read.h.

References imported_symtabs.

Referenced by process_imported_unit_die(), and queue_and_load_dwo_tu().

◆ imported_symtabs_size()

size_t dwarf2_per_cu_data::imported_symtabs_size ( ) const
inline

Definition at line 265 of file read.h.

References imported_symtabs.

◆ lang()

enum language dwarf2_per_cu_data::lang ( bool strict_p = true) const
inline

Definition at line 352 of file read.h.

References language_unknown, and m_lang.

Referenced by cooked_index_entry::full_name(), process_imported_unit_die(), and set_lang().

◆ length()

unsigned int dwarf2_per_cu_data::length ( ) const
inline

◆ offset_size()

int dwarf2_per_cu_data::offset_size ( ) const

Definition at line 21575 of file read.c.

References get_header(), and comp_unit_head::offset_size.

Referenced by locexpr_describe_location(), and loclist_describe_location().

◆ ref_addr_size()

int dwarf2_per_cu_data::ref_addr_size ( ) const

◆ set_lang()

void dwarf2_per_cu_data::set_lang ( enum language lang)
inline

Definition at line 360 of file read.h.

References lang(), language_unknown, m_lang, and unit_type().

Referenced by prepare_one_comp_unit().

◆ set_length()

void dwarf2_per_cu_data::set_length ( unsigned int length,
bool strict_p = true )
inline

Definition at line 302 of file read.h.

References length(), and m_length.

Referenced by cutu_reader::cutu_reader(), cutu_reader::cutu_reader(), and fill_in_sig_entry_from_dwo_entry().

◆ set_unit_type()

void dwarf2_per_cu_data::set_unit_type ( dwarf_unit_type unit_type)
inline

Definition at line 338 of file read.h.

References m_unit_type, and unit_type().

Referenced by prepare_one_comp_unit().

◆ set_version()

void dwarf2_per_cu_data::set_version ( short version)
inline

Definition at line 320 of file read.h.

References m_dwarf_version, and version().

Referenced by cutu_reader::cutu_reader().

◆ unit_type()

dwarf_unit_type dwarf2_per_cu_data::unit_type ( bool strict_p = true) const
inline

Definition at line 330 of file read.h.

References m_unit_type.

Referenced by process_imported_unit_die(), set_lang(), and set_unit_type().

◆ version()

short dwarf2_per_cu_data::version ( ) const
inline

Member Data Documentation

◆ addresses_seen

packed<bool, 1> dwarf2_per_cu_data::addresses_seen = false

◆ file_names

struct quick_file_names* dwarf2_per_cu_data::file_names = nullptr

Definition at line 220 of file read.h.

Referenced by dw2_get_file_names(), dw2_get_file_names_reader(), and free_cached_file_names().

◆ files_read

packed<bool, 1> dwarf2_per_cu_data::files_read

Definition at line 177 of file read.h.

Referenced by dw2_get_file_names(), and dw2_get_file_names_reader().

◆ fnd

std::unique_ptr<file_and_directory> dwarf2_per_cu_data::fnd

Definition at line 215 of file read.h.

Referenced by find_file_and_directory(), and free_cached_file_names().

◆ imported_symtabs

std::vector<dwarf2_per_cu_data *>* dwarf2_per_cu_data::imported_symtabs = nullptr

◆ index

unsigned dwarf2_per_cu_data::index = 0

◆ is_debug_types

unsigned int dwarf2_per_cu_data::is_debug_types

◆ is_dwz

unsigned int dwarf2_per_cu_data::is_dwz

◆ m_dwarf_version

unsigned char dwarf2_per_cu_data::m_dwarf_version = 0
private

Definition at line 126 of file read.h.

Referenced by set_version(), and version().

◆ m_header

comp_unit_head dwarf2_per_cu_data::m_header
mutable

Definition at line 209 of file read.h.

Referenced by get_header().

◆ m_header_read_in

packed<bool, 1> dwarf2_per_cu_data::m_header_read_in
mutable

Definition at line 169 of file read.h.

Referenced by get_header().

◆ m_lang

std::atomic<packed<language, LANGUAGE_BYTES> > dwarf2_per_cu_data::m_lang {language_unknown}
private

Definition at line 184 of file read.h.

Referenced by lang(), and set_lang().

◆ m_length

unsigned int dwarf2_per_cu_data::m_length = 0
private

Definition at line 123 of file read.h.

Referenced by length(), and set_length().

◆ m_unit_type

std::atomic<packed<dwarf_unit_type, 1> > dwarf2_per_cu_data::m_unit_type {(dwarf_unit_type)0}
private

Definition at line 181 of file read.h.

Referenced by set_unit_type(), and unit_type().

◆ mark

packed<unsigned int, 1> dwarf2_per_cu_data::mark

Definition at line 173 of file read.h.

Referenced by dw2_expand_symtabs_matching_one().

◆ per_bfd

dwarf2_per_bfd* dwarf2_per_cu_data::per_bfd = nullptr

◆ queued

packed<bool, 1> dwarf2_per_cu_data::queued

◆ reading_dwo_directly

unsigned int dwarf2_per_cu_data::reading_dwo_directly

◆ scanned

std::atomic<bool> dwarf2_per_cu_data::scanned

Definition at line 189 of file read.h.

Referenced by cooked_indexer::ensure_cu_exists(), and process_psymtab_comp_unit().

◆ sect_off

sect_offset dwarf2_per_cu_data::sect_off {}

◆ section

struct dwarf2_section_info* dwarf2_per_cu_data::section = nullptr

◆ tu_read

unsigned int dwarf2_per_cu_data::tu_read

Definition at line 151 of file read.h.

Referenced by lookup_dwo_signatured_type(), and read_signatured_type().


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