GDB (xrefs)
|
#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_data * | dw2_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 |
void _initialize_read_gdb_index | ( | ) |
Definition at line 856 of file read-gdb-index.c.
Referenced by initialize_all_files().
|
static |
Definition at line 717 of file read-gdb-index.c.
References dwarf2_per_objfile::adjust(), dwarf2_per_bfd::all_units, complaint, extract_unsigned_integer(), dwarf2_per_bfd::get_cu(), dwarf2_per_cu_data::index, dwarf2_per_bfd::index_addrmap, dwarf2_per_bfd::obstack, dwarf2_per_cu_data::per_bfd, dwarf2_per_objfile::per_bfd, and addrmap_mutable::set_empty().
Referenced by dwarf2_read_gdb_index().
|
static |
Definition at line 656 of file read-gdb-index.c.
References dwarf2_per_bfd::all_units, create_cus_from_gdb_index_list(), dwarf2_get_dwz_file(), dwarf2_per_bfd::info, and dwarf2_per_cu_data::per_bfd.
Referenced by dwarf2_read_gdb_index().
|
static |
Definition at line 631 of file read-gdb-index.c.
References dwarf2_per_bfd::all_units, create_cu_from_index_list(), extract_unsigned_integer(), gdb_static_assert(), dwarf2_per_cu_data::is_dwz, dwarf2_per_cu_data::length(), dwarf2_per_cu_data::per_bfd, dwarf2_per_cu_data::sect_off, and dwarf2_per_cu_data::section.
Referenced by create_cus_from_gdb_index().
|
static |
Definition at line 677 of file read-gdb-index.c.
References dwarf2_per_bfd::all_units, dwarf2_per_bfd::allocate_signatured_type(), allocate_signatured_type_table(), extract_unsigned_integer(), gdb_static_assert(), dwarf2_per_cu_data::per_bfd, dwarf2_per_cu_data::sect_off, dwarf2_per_cu_data::section, and dwarf2_per_bfd::signatured_types.
Referenced by dwarf2_read_gdb_index().
|
static |
Definition at line 361 of file read-gdb-index.c.
References dwarf2_per_bfd::all_units, complaint, dw2_expand_symtabs_matching_one(), FUNCTIONS_DOMAIN, dwarf2_per_bfd::get_cu(), dwarf2_per_cu_data::index, dwarf2_per_bfd::index_table, MODULES_DOMAIN, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, SEARCH_GLOBAL_BLOCK, SEARCH_STATIC_BLOCK, TYPES_DOMAIN, and VARIABLES_DOMAIN.
Referenced by dwarf2_gdb_index::expand_symtabs_matching().
|
static |
Definition at line 201 of file read-gdb-index.c.
References dw2_symtab_iterator::block_index, mapped_gdb_index::constant_pool, dw2_symtab_iterator::domain, dw2_symtab_iterator::global_seen, dw2_symtab_iterator::length, dw2_symtab_iterator::next, dw2_symtab_iterator::per_objfile, mapped_gdb_index::symbol_name_slot_invalid(), mapped_gdb_index::symbol_vec_index(), and dw2_symtab_iterator::vec.
Referenced by dwarf2_gdb_index::expand_matching_symbols().
|
static |
Definition at line 225 of file read-gdb-index.c.
References dwarf2_per_bfd::all_units, dw2_symtab_iterator::block_index, complaint, dw2_symtab_iterator::domain, dwarf2_per_bfd::get_cu(), dw2_symtab_iterator::global_seen, dwarf2_per_cu_data::index, LABEL_DOMAIN, dw2_symtab_iterator::length, MODULE_DOMAIN, dw2_symtab_iterator::next, dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, dw2_symtab_iterator::per_objfile, STATIC_BLOCK, STRUCT_DOMAIN, dwarf2_per_objfile::symtab_set_p(), VAR_DOMAIN, and dw2_symtab_iterator::vec.
Referenced by dwarf2_gdb_index::expand_matching_symbols().
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 ) |
Definition at line 764 of file read-gdb-index.c.
References create_addrmap_from_gdb_index(), create_cus_from_gdb_index(), create_quick_file_names_table(), create_signatured_type_table_from_gdb_index(), dwarf2_get_dwz_file(), dwz_file::dwz_bfd, finalize_all_units(), dwarf2_per_objfile::objfile, objfile_name(), dwarf2_per_objfile::per_bfd, objfile::per_bfd, read_gdb_index_from_buffer(), and use_deprecated_index_sections.
Referenced by dwarf2_initialize_objfile().
|
static |
Definition at line 525 of file read-gdb-index.c.
References mapped_gdb_index::address_table, mapped_gdb_index::constant_pool, offset_view::empty(), mapped_gdb_index::symbol_table, version, and mapped_gdb_index::version.
Referenced by dwarf2_read_gdb_index().
|
static |
Definition at line 32 of file read-gdb-index.c.
Referenced by dwarf2_read_gdb_index().