GDB (xrefs)
|
#include "cooked-index.h"
Public Types | |
typedef iterator_range< std::vector< cooked_index_entry * >::iterator > | range |
Public Member Functions | |
cooked_index ()=default | |
DISABLE_COPY_AND_ASSIGN (cooked_index) | |
const cooked_index_entry * | add (sect_offset die_offset, enum dwarf_tag tag, cooked_index_flag flags, const char *name, const cooked_index_entry *parent_entry, dwarf2_per_cu_data *per_cu) |
void | install_addrmap (addrmap_mutable *map) |
void | finalize () |
void | wait () |
range | all_entries () |
range | find (const std::string &name, bool completing) |
Private Member Functions | |
const cooked_index_entry * | get_main () const |
dwarf2_per_cu_data * | lookup (CORE_ADDR addr) |
cooked_index_entry * | create (sect_offset die_offset, enum dwarf_tag tag, cooked_index_flag flags, const char *name, const cooked_index_entry *parent_entry, dwarf2_per_cu_data *per_cu) |
gdb::unique_xmalloc_ptr< char > | handle_gnat_encoded_entry (cooked_index_entry *entry, htab_t gnat_entries) |
void | do_finalize () |
Private Attributes | |
auto_obstack | m_storage |
std::vector< cooked_index_entry * > | m_entries |
cooked_index_entry * | m_main = nullptr |
addrmap * | m_addrmap = nullptr |
std::vector< gdb::unique_xmalloc_ptr< char > > | m_names |
gdb::future< void > | m_future |
Friends | |
class | cooked_index_vector |
Definition at line 245 of file cooked-index.h.
typedef iterator_range<std::vector<cooked_index_entry *>::iterator> cooked_index::range |
Definition at line 280 of file cooked-index.h.
|
default |
const cooked_index_entry * cooked_index::add | ( | sect_offset | die_offset, |
enum dwarf_tag | tag, | ||
cooked_index_flag | flags, | ||
const char * | name, | ||
const cooked_index_entry * | parent_entry, | ||
dwarf2_per_cu_data * | per_cu | ||
) |
|
inline |
Definition at line 283 of file cooked-index.h.
|
inlineprivate |
Definition at line 313 of file cooked-index.h.
References flags, m_storage, and name.
Referenced by add(), and handle_gnat_encoded_entry().
cooked_index::DISABLE_COPY_AND_ASSIGN | ( | cooked_index | ) |
|
private |
Definition at line 277 of file cooked-index.c.
References c_canonicalize_name(), cooked_index_entry::canonical, cp_canonicalize_string(), dwarf5_djb_hash(), handle_gnat_encoded_entry(), IS_LINKAGE, language_ada, language_c, language_cplus, m_entries, m_names, cooked_index_entry::name, xcalloc(), and xfree().
Referenced by finalize().
void cooked_index::finalize | ( | ) |
Definition at line 224 of file cooked-index.c.
References do_finalize(), and m_future.
cooked_index::range cooked_index::find | ( | const std::string & | name, |
bool | completing | ||
) |
Definition at line 377 of file cooked-index.c.
References cooked_index_entry::COMPLETE, m_entries, cooked_index_entry::MATCH, name, and wait().
|
inlineprivate |
Definition at line 298 of file cooked-index.h.
References m_main.
|
private |
Definition at line 235 of file cooked-index.c.
References ada_decode(), cooked_index_entry::canonical, create(), cooked_index_entry::die_offset, dwarf5_djb_hash(), m_names, name, cooked_index_entry::name, cooked_index_entry::parent_entry, cooked_index_entry::per_cu, and split_name().
Referenced by do_finalize().
|
inline |
Definition at line 260 of file cooked-index.h.
|
inlineprivate |
Definition at line 306 of file cooked-index.h.
References addrmap::find(), and m_addrmap.
|
inline |
Definition at line 272 of file cooked-index.h.
References m_future.
Referenced by all_entries(), and find().
|
friend |
Definition at line 277 of file cooked-index.h.
|
private |
Definition at line 344 of file cooked-index.h.
Referenced by install_addrmap(), and lookup().
|
private |
Definition at line 339 of file cooked-index.h.
Referenced by add(), all_entries(), do_finalize(), and find().
|
private |
Definition at line 350 of file cooked-index.h.
Referenced by finalize(), and wait().
|
private |
Definition at line 341 of file cooked-index.h.
Referenced by add(), and get_main().
|
private |
Definition at line 346 of file cooked-index.h.
Referenced by do_finalize(), and handle_gnat_encoded_entry().
|
private |
Definition at line 337 of file cooked-index.h.
Referenced by create(), and install_addrmap().