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

#include "read.h"

Classes

struct  tu_stats
 

Public Member Functions

 dwarf2_per_bfd (bfd *obfd, const dwarf2_debug_sections *names, bool can_copy)
 
 ~dwarf2_per_bfd ()
 
 DISABLE_COPY_AND_ASSIGN (dwarf2_per_bfd)
 
dwarf2_per_cu_dataget_cu (int index) const
 
dwarf2_per_cu_data_up allocate_per_cu ()
 
signatured_type_up allocate_signatured_type (ULONGEST signature)
 
void map_info_sections (struct objfile *objfile)
 

Public Attributes

bfd * obfd
 
auto_obstack obstack
 
dwarf2_section_info info {}
 
dwarf2_section_info abbrev {}
 
dwarf2_section_info line {}
 
dwarf2_section_info loc {}
 
dwarf2_section_info loclists {}
 
dwarf2_section_info macinfo {}
 
dwarf2_section_info macro {}
 
dwarf2_section_info str {}
 
dwarf2_section_info str_offsets {}
 
dwarf2_section_info line_str {}
 
dwarf2_section_info ranges {}
 
dwarf2_section_info rnglists {}
 
dwarf2_section_info addr {}
 
dwarf2_section_info frame {}
 
dwarf2_section_info eh_frame {}
 
dwarf2_section_info gdb_index {}
 
dwarf2_section_info debug_names {}
 
dwarf2_section_info debug_aranges {}
 
std::vector< dwarf2_section_infotypes
 
std::vector< dwarf2_per_cu_data_upall_units
 
gdb::array_view< dwarf2_per_cu_data_upall_comp_units
 
gdb::array_view< dwarf2_per_cu_data_upall_type_units
 
htab_up type_unit_groups
 
htab_up signatured_types
 
htab_up dwo_files
 
bool dwp_checked = false
 
std::unique_ptr< struct dwp_filedwp_file
 
std::unique_ptr< struct dwz_filedwz_file
 
bool can_copy
 
bool has_section_at_zero = false
 
std::unique_ptr< dwarf_scanner_baseindex_table
 
htab_up quick_file_names_table
 
std::vector< dwarf2_per_cu_data * > just_read_cus
 
std::unique_ptr< index_cache_resourceindex_cache_res
 
std::unordered_map< sect_offset, std::vector< sect_offset >, gdb::hash_enum< sect_offset > > abstract_to_concrete
 
struct addrmapindex_addrmap = nullptr
 

Private Member Functions

void locate_sections (bfd *abfd, asection *sectp, const dwarf2_debug_sections &names)
 

Detailed Description

Definition at line 420 of file read.h.

Constructor & Destructor Documentation

◆ dwarf2_per_bfd()

dwarf2_per_bfd::dwarf2_per_bfd ( bfd * obfd,
const dwarf2_debug_sections * names,
bool can_copy )

Definition at line 1258 of file read.c.

References dwarf2_elf_names, and locate_sections().

◆ ~dwarf2_per_bfd()

dwarf2_per_bfd::~dwarf2_per_bfd ( )

Definition at line 1270 of file read.c.

References all_units, and index_table.

Member Function Documentation

◆ allocate_per_cu()

dwarf2_per_cu_data_up dwarf2_per_bfd::allocate_per_cu ( )

Definition at line 1802 of file read.c.

References all_units.

Referenced by create_cu_from_index_list(), and read_comp_units_from_section().

◆ allocate_signatured_type()

signatured_type_up dwarf2_per_bfd::allocate_signatured_type ( ULONGEST signature)

◆ DISABLE_COPY_AND_ASSIGN()

dwarf2_per_bfd::DISABLE_COPY_AND_ASSIGN ( dwarf2_per_bfd )

◆ get_cu()

dwarf2_per_cu_data * dwarf2_per_bfd::get_cu ( int index) const
inline

◆ locate_sections()

void dwarf2_per_bfd::locate_sections ( bfd * abfd,
asection * sectp,
const dwarf2_debug_sections & names )
private

◆ map_info_sections()

void dwarf2_per_bfd::map_info_sections ( struct objfile * objfile)

Definition at line 1578 of file read.c.

References abbrev, addr, info, line, line_str, ranges, dwarf2_section_info::read(), rnglists, str, str_offsets, and types.

Member Data Documentation

◆ abbrev

dwarf2_section_info dwarf2_per_bfd::abbrev {}

◆ abstract_to_concrete

std::unordered_map<sect_offset, std::vector<sect_offset>, gdb::hash_enum<sect_offset> > dwarf2_per_bfd::abstract_to_concrete

Definition at line 555 of file read.h.

Referenced by read_variable().

◆ addr

dwarf2_section_info dwarf2_per_bfd::addr {}

Definition at line 481 of file read.h.

Referenced by locate_sections(), map_info_sections(), and read_addr_index_1().

◆ all_comp_units

gdb::array_view<dwarf2_per_cu_data_up> dwarf2_per_bfd::all_comp_units

Definition at line 496 of file read.h.

Referenced by dw2_debug_names_iterator::next(), and write_debug_names().

◆ all_type_units

gdb::array_view<dwarf2_per_cu_data_up> dwarf2_per_bfd::all_type_units

Definition at line 497 of file read.h.

Referenced by build_type_psymtabs(), dw2_debug_names_iterator::next(), and write_debug_names().

◆ all_units

std::vector<dwarf2_per_cu_data_up> dwarf2_per_bfd::all_units

◆ can_copy

bool dwarf2_per_bfd::can_copy

Definition at line 526 of file read.h.

Referenced by new_symbol().

◆ debug_aranges

dwarf2_section_info dwarf2_per_bfd::debug_aranges {}

Definition at line 486 of file read.h.

Referenced by locate_sections().

◆ debug_names

dwarf2_section_info dwarf2_per_bfd::debug_names {}

Definition at line 485 of file read.h.

◆ dwo_files

htab_up dwarf2_per_bfd::dwo_files

Definition at line 513 of file read.h.

Referenced by lookup_dwo_file_slot(), and process_skeletonless_type_units().

◆ dwp_checked

bool dwarf2_per_bfd::dwp_checked = false

Definition at line 516 of file read.h.

Referenced by get_dwp_file().

◆ dwp_file

std::unique_ptr<struct dwp_file> dwarf2_per_bfd::dwp_file

Definition at line 519 of file read.h.

Referenced by get_dwp_file().

◆ dwz_file

std::unique_ptr<struct dwz_file> dwarf2_per_bfd::dwz_file

Definition at line 523 of file read.h.

Referenced by dwarf2_get_dwz_file().

◆ eh_frame

dwarf2_section_info dwarf2_per_bfd::eh_frame {}

Definition at line 483 of file read.h.

Referenced by dwarf2_get_section_info(), and locate_sections().

◆ frame

dwarf2_section_info dwarf2_per_bfd::frame {}

◆ gdb_index

dwarf2_section_info dwarf2_per_bfd::gdb_index {}

Definition at line 484 of file read.h.

Referenced by locate_sections().

◆ has_section_at_zero

bool dwarf2_per_bfd::has_section_at_zero = false

◆ index_addrmap

struct addrmap* dwarf2_per_bfd::index_addrmap = nullptr

◆ index_cache_res

std::unique_ptr<index_cache_resource> dwarf2_per_bfd::index_cache_res

Definition at line 549 of file read.h.

Referenced by get_gdb_index_contents_from_cache().

◆ index_table

std::unique_ptr<dwarf_scanner_base> dwarf2_per_bfd::index_table

◆ info

dwarf2_section_info dwarf2_per_bfd::info {}

◆ just_read_cus

std::vector<dwarf2_per_cu_data *> dwarf2_per_bfd::just_read_cus

Definition at line 545 of file read.h.

Referenced by process_cu_includes(), and process_full_comp_unit().

◆ line

dwarf2_section_info dwarf2_per_bfd::line {}

◆ line_str

dwarf2_section_info dwarf2_per_bfd::line_str {}

◆ loc

dwarf2_section_info dwarf2_per_bfd::loc {}

Definition at line 472 of file read.h.

Referenced by cu_debug_loc_section(), and locate_sections().

◆ loclists

dwarf2_section_info dwarf2_per_bfd::loclists {}

Definition at line 473 of file read.h.

Referenced by cu_debug_loc_section(), and locate_sections().

◆ macinfo

dwarf2_section_info dwarf2_per_bfd::macinfo {}

Definition at line 474 of file read.h.

Referenced by dwarf_decode_macros(), and locate_sections().

◆ macro

dwarf2_section_info dwarf2_per_bfd::macro {}

Definition at line 475 of file read.h.

Referenced by dwarf_decode_macros(), and locate_sections().

◆ obfd

bfd* dwarf2_per_bfd::obfd

◆ obstack

auto_obstack dwarf2_per_bfd::obstack

◆ quick_file_names_table

htab_up dwarf2_per_bfd::quick_file_names_table

Definition at line 542 of file read.h.

Referenced by dw2_get_file_names_reader(), and dwarf2_initialize_objfile().

◆ ranges

dwarf2_section_info dwarf2_per_bfd::ranges {}

Definition at line 479 of file read.h.

Referenced by dwarf2_ranges_process(), locate_sections(), and map_info_sections().

◆ rnglists

dwarf2_section_info dwarf2_per_bfd::rnglists {}

Definition at line 480 of file read.h.

Referenced by cu_debug_rnglists_section(), locate_sections(), and map_info_sections().

◆ signatured_types

htab_up dwarf2_per_bfd::signatured_types

◆ str

dwarf2_section_info dwarf2_per_bfd::str {}

◆ str_offsets

dwarf2_section_info dwarf2_per_bfd::str_offsets {}

◆ type_unit_groups

htab_up dwarf2_per_bfd::type_unit_groups

Definition at line 501 of file read.h.

Referenced by build_type_psymtabs(), and get_type_unit_group().

◆ types

std::vector<dwarf2_section_info> dwarf2_per_bfd::types

Definition at line 488 of file read.h.

Referenced by create_all_units(), determine_prefix(), map_info_sections(), and write_dwarf_index().


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