GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions | Variables
read.h File Reference
#include <queue>
#include <unordered_map>
#include "dwarf2/comp-unit-head.h"
#include "dwarf2/cooked-index.h"
#include "dwarf2/file-and-dir.h"
#include "dwarf2/index-cache.h"
#include "dwarf2/mapped-index.h"
#include "dwarf2/section.h"
#include "dwarf2/cu.h"
#include "filename-seen-cache.h"
#include "gdbsupport/gdb_obstack.h"
#include "gdbsupport/hash_enum.h"
#include "gdbsupport/function-view.h"
#include "gdbsupport/packed.h"

Go to the source code of this file.

Classes

struct  tu_stats
 
struct  dwarf2_queue_item
 
struct  dwarf2_per_cu_data_deleter
 
struct  dwarf2_per_cu_data
 
struct  signatured_type
 
struct  dwarf2_per_bfd
 
struct  dwarf2_per_bfd::tu_stats
 
class  all_units_iterator
 
class  all_units_range
 
struct  type_unit_group_unshareable
 
struct  dwarf2_per_objfile
 
struct  dwarf2_base_index_functions
 

Typedefs

typedef std::unique_ptr< dwarf2_per_cu_data, dwarf2_per_cu_data_deleterdwarf2_per_cu_data_up
 
using signatured_type_up = std::unique_ptr<signatured_type>
 

Enumerations

enum  dwarf2_section_enum { DWARF2_DEBUG_FRAME , DWARF2_EH_FRAME }
 

Functions

dwarf2_per_objfileget_dwarf2_per_objfile (struct objfile *objfile)
 
struct typedwarf2_get_die_type (cu_offset die_offset, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile)
 
unrelocated_addr dwarf2_read_addr_index (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, unsigned int addr_index)
 
struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_sect_off (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< CORE_ADDR()> get_frame_pc, bool resolve_abstract_p=false)
 
struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_cu_off (cu_offset offset_in_cu, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< CORE_ADDR()> get_frame_pc)
 
const gdb_byte * dwarf2_fetch_constant_bytes (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, obstack *obstack, LONGEST *len)
 
struct typedwarf2_fetch_die_type_sect_off (sect_offset sect_off, dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, const char **var_name=nullptr)
 
void dwarf2_get_section_info (struct objfile *, enum dwarf2_section_enum, asection **, const gdb_byte **, bfd_size_type *)
 
bool producer_is_clang (struct dwarf2_cu *cu)
 
bool dw2_expand_symtabs_matching_one (dwarf2_per_cu_data *per_cu, dwarf2_per_objfile *per_objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify)
 
bool dw2_expand_symtabs_matching_symbol (mapped_index_base &index, const lookup_name_info &lookup_name_in, gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher, gdb::function_view< bool(offset_type)> match_callback, dwarf2_per_objfile *per_objfile)
 
void dw_expand_symtabs_matching_file_matcher (dwarf2_per_objfile *per_objfile, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher)
 
const char * read_indirect_string_at_offset (dwarf2_per_objfile *per_objfile, LONGEST str_offset)
 
htab_up allocate_signatured_type_table ()
 
dwarf2_per_cu_data_up create_cu_from_index_list (dwarf2_per_bfd *per_bfd, struct dwarf2_section_info *section, int is_dwz, sect_offset sect_off, ULONGEST length)
 
void finalize_all_units (dwarf2_per_bfd *per_bfd)
 
htab_up create_quick_file_names_table (unsigned int nr_initial_entries)
 
bool read_addrmap_from_aranges (dwarf2_per_objfile *per_objfile, dwarf2_section_info *section, addrmap *mutable_map)
 

Variables

struct cmd_list_elementset_dwarf_cmdlist
 
struct cmd_list_elementshow_dwarf_cmdlist
 
unsigned int dwarf_line_debug
 

Typedef Documentation

◆ dwarf2_per_cu_data_up

Definition at line 94 of file read.h.

◆ signatured_type_up

using signatured_type_up = std::unique_ptr<signatured_type>

Definition at line 411 of file read.h.

Enumeration Type Documentation

◆ dwarf2_section_enum

Enumerator
DWARF2_DEBUG_FRAME 
DWARF2_EH_FRAME 

Definition at line 830 of file read.h.

Function Documentation

◆ allocate_signatured_type_table()

htab_up allocate_signatured_type_table ( )
extern

◆ create_cu_from_index_list()

dwarf2_per_cu_data_up create_cu_from_index_list ( dwarf2_per_bfd * per_bfd,
struct dwarf2_section_info * section,
int is_dwz,
sect_offset sect_off,
ULONGEST length )
extern

◆ create_quick_file_names_table()

htab_up create_quick_file_names_table ( unsigned int nr_initial_entries)
extern

◆ dw2_expand_symtabs_matching_one()

bool dw2_expand_symtabs_matching_one ( dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher,
gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify )
extern

◆ dw2_expand_symtabs_matching_symbol()

bool dw2_expand_symtabs_matching_symbol ( mapped_index_base & index,
const lookup_name_info & lookup_name_in,
gdb::function_view< expand_symtabs_symbol_matcher_ftype > symbol_matcher,
gdb::function_view< bool(offset_type)> match_callback,
dwarf2_per_objfile * per_objfile )
extern

◆ dw_expand_symtabs_matching_file_matcher()

void dw_expand_symtabs_matching_file_matcher ( dwarf2_per_objfile * per_objfile,
gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher )
extern

◆ dwarf2_fetch_constant_bytes()

const gdb_byte * dwarf2_fetch_constant_bytes ( sect_offset sect_off,
dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
obstack * obstack,
LONGEST * len )
extern

◆ dwarf2_fetch_die_loc_cu_off()

struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_cu_off ( cu_offset offset_in_cu,
dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
gdb::function_view< CORE_ADDR()> get_frame_pc )

◆ dwarf2_fetch_die_loc_sect_off()

struct dwarf2_locexpr_baton dwarf2_fetch_die_loc_sect_off ( sect_offset sect_off,
dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
gdb::function_view< CORE_ADDR()> get_frame_pc,
bool resolve_abstract_p = false )

◆ dwarf2_fetch_die_type_sect_off()

struct type * dwarf2_fetch_die_type_sect_off ( sect_offset sect_off,
dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
const char ** var_name = nullptr )

◆ dwarf2_get_die_type()

struct type * dwarf2_get_die_type ( cu_offset die_offset,
dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile )

◆ dwarf2_get_section_info()

void dwarf2_get_section_info ( struct objfile * objfile,
enum dwarf2_section_enum,
asection ** sectp,
const gdb_byte ** bufp,
bfd_size_type * sizep )
extern

◆ dwarf2_read_addr_index()

unrelocated_addr dwarf2_read_addr_index ( dwarf2_per_cu_data * per_cu,
dwarf2_per_objfile * per_objfile,
unsigned int addr_index )

◆ finalize_all_units()

void finalize_all_units ( dwarf2_per_bfd * per_bfd)
extern

Definition at line 5271 of file read.c.

References objfile::per_bfd.

Referenced by create_all_units(), dwarf2_read_debug_names(), and dwarf2_read_gdb_index().

◆ get_dwarf2_per_objfile()

dwarf2_per_objfile * get_dwarf2_per_objfile ( struct objfile * objfile)

◆ producer_is_clang()

bool producer_is_clang ( struct dwarf2_cu * cu)
extern

◆ read_addrmap_from_aranges()

bool read_addrmap_from_aranges ( dwarf2_per_objfile * per_objfile,
dwarf2_section_info * section,
addrmap * mutable_map )
extern

◆ read_indirect_string_at_offset()

const char * read_indirect_string_at_offset ( dwarf2_per_objfile * per_objfile,
LONGEST str_offset )
extern

Variable Documentation

◆ dwarf_line_debug

unsigned int dwarf_line_debug
extern

◆ set_dwarf_cmdlist

struct cmd_list_element* set_dwarf_cmdlist
extern

Definition at line 22034 of file read.c.

◆ show_dwarf_cmdlist

struct cmd_list_element* show_dwarf_cmdlist
extern

Definition at line 22035 of file read.c.