GDB (xrefs)
|
#include "cooked-index.h"
Public Types | |
using | vec_type = std::vector<std::unique_ptr<cooked_index_shard>> |
using | range = range_chain<cooked_index_shard::range> |
Public Member Functions | |
cooked_index (vec_type &&vec) | |
~cooked_index () override | |
DISABLE_COPY_AND_ASSIGN (cooked_index) | |
void | wait () const |
range | find (const std::string &name, bool completing) const |
range | all_entries () const |
dwarf2_per_cu_data * | lookup (CORE_ADDR addr) |
std::vector< const addrmap * > | get_addrmaps () const |
const cooked_index_entry * | get_main () const |
cooked_index * | index_for_writing () override |
quick_symbol_functions_up | make_quick_functions () const override |
void | dump (gdbarch *arch) const |
void | wait_completely () override |
void | start_writing_index (dwarf2_per_bfd *per_bfd) |
![]() | |
dwarf_scanner_base ()=default | |
virtual | ~dwarf_scanner_base ()=default |
DISABLE_COPY_AND_ASSIGN (dwarf_scanner_base) | |
virtual bool | version_check () const |
Private Member Functions | |
void | maybe_write_index (dwarf2_per_bfd *per_bfd, const index_cache_store_context &) |
Private Attributes | |
vec_type | m_vector |
gdb::future< void > | m_write_future |
Definition at line 362 of file cooked-index.h.
using cooked_index::range = range_chain<cooked_index_shard::range> |
Definition at line 383 of file cooked-index.h.
using cooked_index::vec_type = std::vector<std::unique_ptr<cooked_index_shard>> |
Definition at line 368 of file cooked-index.h.
|
explicit |
Definition at line 446 of file cooked-index.c.
References active_vectors, is_main_thread(), and m_vector.
|
override |
Definition at line 480 of file cooked-index.c.
References active_vectors, is_main_thread(), m_vector, and wait_completely().
|
inline |
Definition at line 391 of file cooked-index.h.
References m_vector.
Referenced by dump(), cooked_index_functions::expand_matching_symbols(), write_cooked_index(), and write_debug_names().
cooked_index::DISABLE_COPY_AND_ASSIGN | ( | cooked_index | ) |
void cooked_index::dump | ( | gdbarch * | arch | ) | const |
Definition at line 566 of file cooked-index.c.
References all_entries(), dwarf_tag_name(), addrmap::foreach(), gdb_printf(), get_addrmaps(), get_main(), cooked_index_entry::name, paddress(), QUIT, sect_offset_str(), to_string(), and wait().
Referenced by cooked_index_functions::dump().
cooked_index::range cooked_index::find | ( | const std::string & | name, |
bool | completing ) const |
Definition at line 530 of file cooked-index.c.
References m_vector, and name.
Referenced by cooked_index_functions::expand_symtabs_matching(), and cooked_index_functions::lookup_global_symbol_language().
std::vector< const addrmap * > cooked_index::get_addrmaps | ( | ) | const |
Definition at line 519 of file cooked-index.c.
References m_vector.
Referenced by dump(), and write_gdbindex().
const cooked_index_entry * cooked_index::get_main | ( | ) | const |
Definition at line 542 of file cooked-index.c.
References language_requires_canonicalization(), and m_vector.
Referenced by dump().
|
inlineoverridevirtual |
Implements dwarf_scanner_base.
Definition at line 413 of file cooked-index.h.
dwarf2_per_cu_data * cooked_index::lookup | ( | CORE_ADDR | addr | ) |
Definition at line 505 of file cooked-index.c.
References m_vector.
Referenced by cooked_index_functions::find_compunit_symtab_by_address(), and cooked_index_functions::find_per_cu().
|
overridevirtual |
Implements dwarf_scanner_base.
Definition at line 16973 of file read.c.
References make_cooked_index_funcs().
|
private |
Definition at line 642 of file cooked-index.c.
References global_index_cache, index_cache::store(), and wait().
Referenced by start_writing_index().
void cooked_index::start_writing_index | ( | dwarf2_per_bfd * | per_bfd | ) |
Definition at line 461 of file cooked-index.c.
References global_index_cache, m_write_future, and maybe_write_index().
|
inline |
Definition at line 376 of file cooked-index.h.
References m_vector.
Referenced by dump(), cooked_index_functions::expand_symtabs_matching(), and maybe_write_index().
|
inlineoverridevirtual |
Reimplemented from dwarf_scanner_base.
Definition at line 428 of file cooked-index.h.
References m_write_future.
Referenced by ~cooked_index().
|
private |
Definition at line 444 of file cooked-index.h.
Referenced by all_entries(), cooked_index(), find(), get_addrmaps(), get_main(), lookup(), wait(), and ~cooked_index().
|
private |
Definition at line 447 of file cooked-index.h.
Referenced by start_writing_index(), and wait_completely().