GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Functions | Variables
read-gdb-index.c File Reference
#include "defs.h"
#include "read-gdb-index.h"
#include "cli/cli-cmds.h"
#include "complaints.h"
#include "dwz.h"
#include "gdb/gdb-index.h"
#include "gdbsupport/gdb-checked-static-cast.h"
#include "mapped-index.h"
#include "read.h"

Go to the source code of this file.

Classes

class  offset_view
 
struct  mapped_gdb_index
 
struct  dwarf2_gdb_index
 
struct  dw2_symtab_iterator
 

Functions

static void dw2_symtab_iter_init (struct dw2_symtab_iterator *iter, dwarf2_per_objfile *per_objfile, gdb::optional< block_enum > block_index, domain_enum domain, offset_type namei, mapped_gdb_index &index)
 
static struct dwarf2_per_cu_datadw2_symtab_iter_next (struct dw2_symtab_iterator *iter, mapped_gdb_index &index)
 
static bool dw2_expand_marked_cus (dwarf2_per_objfile *per_objfile, offset_type idx, gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher, gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify, block_search_flags search_flags, search_domain kind)
 
static bool read_gdb_index_from_buffer (const char *filename, bool deprecated_ok, gdb::array_view< const gdb_byte > buffer, mapped_gdb_index *map, const gdb_byte **cu_list, offset_type *cu_list_elements, const gdb_byte **types_list, offset_type *types_list_elements)
 
static void create_cus_from_gdb_index_list (dwarf2_per_bfd *per_bfd, const gdb_byte *cu_list, offset_type n_elements, struct dwarf2_section_info *section, int is_dwz)
 
static void create_cus_from_gdb_index (dwarf2_per_bfd *per_bfd, const gdb_byte *cu_list, offset_type cu_list_elements, const gdb_byte *dwz_list, offset_type dwz_elements)
 
static void create_signatured_type_table_from_gdb_index (dwarf2_per_bfd *per_bfd, struct dwarf2_section_info *section, const gdb_byte *bytes, offset_type elements)
 
static void create_addrmap_from_gdb_index (dwarf2_per_objfile *per_objfile, mapped_gdb_index *index)
 
int dwarf2_read_gdb_index (dwarf2_per_objfile *per_objfile, get_gdb_index_contents_ftype get_gdb_index_contents, get_gdb_index_contents_dwz_ftype get_gdb_index_contents_dwz)
 
void _initialize_read_gdb_index ()
 

Variables

static bool use_deprecated_index_sections = false
 

Function Documentation

◆ _initialize_read_gdb_index()

void _initialize_read_gdb_index ( )

Definition at line 856 of file read-gdb-index.c.

Referenced by initialize_all_files().

◆ create_addrmap_from_gdb_index()

static void create_addrmap_from_gdb_index ( dwarf2_per_objfile * per_objfile,
mapped_gdb_index * index )
static

◆ create_cus_from_gdb_index()

static void create_cus_from_gdb_index ( dwarf2_per_bfd * per_bfd,
const gdb_byte * cu_list,
offset_type cu_list_elements,
const gdb_byte * dwz_list,
offset_type dwz_elements )
static

◆ create_cus_from_gdb_index_list()

static void create_cus_from_gdb_index_list ( dwarf2_per_bfd * per_bfd,
const gdb_byte * cu_list,
offset_type n_elements,
struct dwarf2_section_info * section,
int is_dwz )
static

◆ create_signatured_type_table_from_gdb_index()

static void create_signatured_type_table_from_gdb_index ( dwarf2_per_bfd * per_bfd,
struct dwarf2_section_info * section,
const gdb_byte * bytes,
offset_type elements )
static

◆ dw2_expand_marked_cus()

static bool dw2_expand_marked_cus ( dwarf2_per_objfile * per_objfile,
offset_type idx,
gdb::function_view< expand_symtabs_file_matcher_ftype > file_matcher,
gdb::function_view< expand_symtabs_exp_notify_ftype > expansion_notify,
block_search_flags search_flags,
search_domain kind )
static

◆ dw2_symtab_iter_init()

static void dw2_symtab_iter_init ( struct dw2_symtab_iterator * iter,
dwarf2_per_objfile * per_objfile,
gdb::optional< block_enum > block_index,
domain_enum domain,
offset_type namei,
mapped_gdb_index & index )
static

◆ dw2_symtab_iter_next()

static struct dwarf2_per_cu_data * dw2_symtab_iter_next ( struct dw2_symtab_iterator * iter,
mapped_gdb_index & index )
static

◆ dwarf2_read_gdb_index()

int dwarf2_read_gdb_index ( dwarf2_per_objfile * per_objfile,
get_gdb_index_contents_ftype get_gdb_index_contents,
get_gdb_index_contents_dwz_ftype get_gdb_index_contents_dwz )

◆ read_gdb_index_from_buffer()

static bool read_gdb_index_from_buffer ( const char * filename,
bool deprecated_ok,
gdb::array_view< const gdb_byte > buffer,
mapped_gdb_index * map,
const gdb_byte ** cu_list,
offset_type * cu_list_elements,
const gdb_byte ** types_list,
offset_type * types_list_elements )
static

Variable Documentation

◆ use_deprecated_index_sections

bool use_deprecated_index_sections = false
static

Definition at line 32 of file read-gdb-index.c.

Referenced by dwarf2_read_gdb_index().