GDB (xrefs)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
cooked_index Class Reference

#include "cooked-index.h"

Inheritance diagram for cooked_index:
dwarf_scanner_base

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_datalookup (CORE_ADDR addr)
 
std::vector< const addrmap * > get_addrmaps () const
 
const cooked_index_entryget_main () const
 
cooked_indexindex_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)
 
- Public Member Functions inherited from dwarf_scanner_base
 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
 

Detailed Description

Definition at line 362 of file cooked-index.h.

Member Typedef Documentation

◆ range

Definition at line 383 of file cooked-index.h.

◆ vec_type

using cooked_index::vec_type = std::vector<std::unique_ptr<cooked_index_shard>>

Definition at line 368 of file cooked-index.h.

Constructor & Destructor Documentation

◆ cooked_index()

cooked_index::cooked_index ( vec_type && vec)
explicit

Definition at line 446 of file cooked-index.c.

References active_vectors, is_main_thread(), and m_vector.

◆ ~cooked_index()

cooked_index::~cooked_index ( )
override

Definition at line 480 of file cooked-index.c.

References active_vectors, is_main_thread(), m_vector, and wait_completely().

Member Function Documentation

◆ all_entries()

range cooked_index::all_entries ( ) const
inline

◆ DISABLE_COPY_AND_ASSIGN()

cooked_index::DISABLE_COPY_AND_ASSIGN ( cooked_index )

◆ dump()

void cooked_index::dump ( gdbarch * arch) const

◆ find()

cooked_index::range cooked_index::find ( const std::string & name,
bool completing ) const

◆ get_addrmaps()

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().

◆ get_main()

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().

◆ index_for_writing()

cooked_index * cooked_index::index_for_writing ( )
inlineoverridevirtual

Implements dwarf_scanner_base.

Definition at line 413 of file cooked-index.h.

◆ lookup()

dwarf2_per_cu_data * cooked_index::lookup ( CORE_ADDR addr)

◆ make_quick_functions()

quick_symbol_functions_up cooked_index::make_quick_functions ( ) const
overridevirtual

Implements dwarf_scanner_base.

Definition at line 16973 of file read.c.

References make_cooked_index_funcs().

◆ maybe_write_index()

void cooked_index::maybe_write_index ( dwarf2_per_bfd * per_bfd,
const index_cache_store_context & ctx )
private

Definition at line 642 of file cooked-index.c.

References global_index_cache, index_cache::store(), and wait().

Referenced by start_writing_index().

◆ 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().

◆ wait()

void cooked_index::wait ( ) const
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().

◆ wait_completely()

void cooked_index::wait_completely ( )
inlineoverridevirtual

Reimplemented from dwarf_scanner_base.

Definition at line 428 of file cooked-index.h.

References m_write_future.

Referenced by ~cooked_index().

Member Data Documentation

◆ m_vector

vec_type cooked_index::m_vector
private

◆ m_write_future

gdb::future<void> cooked_index::m_write_future
private

Definition at line 447 of file cooked-index.h.

Referenced by start_writing_index(), and wait_completely().


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