|
GDB (xrefs)
|
#include "cooked-index.h"
Public Types | |
| typedef iterator_range< std::vector< cooked_index_entry * >::const_iterator > | range |
Public Member Functions | |
| cooked_index_shard ()=default | |
| DISABLE_COPY_AND_ASSIGN (cooked_index_shard) | |
| 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 (bool allow_quit=true) const |
| range | all_entries () const |
| range | find (const std::string &name, bool completing) const |
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 |
Definition at line 251 of file cooked-index.h.
| iterator_range<std::vector<cooked_index_entry *>::const_iterator> cooked_index_shard::range |
Definition at line 284 of file cooked-index.h.
|
default |
| const cooked_index_entry * cooked_index_shard::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 287 of file cooked-index.h.
|
inlineprivate |
Definition at line 317 of file cooked-index.h.
References flags, m_storage, and name.
Referenced by add(), and handle_gnat_encoded_entry().
| cooked_index_shard::DISABLE_COPY_AND_ASSIGN | ( | cooked_index_shard | ) |
|
private |
Definition at line 305 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_shard::finalize | ( | ) |
Definition at line 252 of file cooked-index.c.
References do_finalize(), and m_future.
| cooked_index_shard::range cooked_index_shard::find | ( | const std::string & | name, |
| bool | completing ) const |
Definition at line 406 of file cooked-index.c.
References cooked_index_entry::COMPLETE, m_entries, cooked_index_entry::MATCH, name, and wait().
|
inlineprivate |
Definition at line 302 of file cooked-index.h.
References m_main.
|
private |
Definition at line 263 of file cooked-index.c.
References ada_decode(), cooked_index_entry::canonical, create(), DOT_STYLE, dwarf5_djb_hash(), m_names, cooked_index_entry::name, name, cooked_index_entry::per_cu, and split_name().
Referenced by do_finalize().
|
inline |
Definition at line 266 of file cooked-index.h.
|
inlineprivate |
Definition at line 310 of file cooked-index.h.
References addrmap::find(), and m_addrmap.
| void cooked_index_shard::wait | ( | bool | allow_quit = true | ) | const |
Definition at line 434 of file cooked-index.c.
References m_future, and QUIT.
Referenced by all_entries(), and find().
|
friend |
Definition at line 280 of file cooked-index.h.
Definition at line 348 of file cooked-index.h.
Referenced by install_addrmap(), and lookup().
|
private |
Definition at line 343 of file cooked-index.h.
Referenced by add(), all_entries(), do_finalize(), and find().
|
private |
Definition at line 354 of file cooked-index.h.
Referenced by finalize(), and wait().
|
private |
Definition at line 345 of file cooked-index.h.
Referenced by add(), and get_main().
|
private |
Definition at line 350 of file cooked-index.h.
Referenced by do_finalize(), and handle_gnat_encoded_entry().
|
private |
Definition at line 341 of file cooked-index.h.
Referenced by create(), and install_addrmap().