GDB (xrefs)
Classes | Macros | Functions
/tmp/gdb-8.1/gdb/dictionary.h File Reference
#include "symfile.h"

Go to the source code of this file.

Classes

struct  dict_iterator
 

Macros

#define ALL_DICT_SYMBOLS(dict, iter, sym)
 

Functions

struct dictionarydict_create_hashed (struct obstack *obstack, enum language language, const struct pending *symbol_list)
 
struct dictionarydict_create_hashed_expandable (enum language language)
 
struct dictionarydict_create_linear (struct obstack *obstack, enum language language, const struct pending *symbol_list)
 
struct dictionarydict_create_linear_expandable (enum language language)
 
void dict_free (struct dictionary *dict)
 
void dict_add_symbol (struct dictionary *dict, struct symbol *sym)
 
void dict_add_pending (struct dictionary *dict, const struct pending *symbol_list)
 
int dict_empty (struct dictionary *dict)
 
struct symboldict_iterator_first (const struct dictionary *dict, struct dict_iterator *iterator)
 
struct symboldict_iterator_next (struct dict_iterator *iterator)
 
struct symboldict_iter_match_first (const struct dictionary *dict, const lookup_name_info &name, struct dict_iterator *iterator)
 
struct symboldict_iter_match_next (const lookup_name_info &name, struct dict_iterator *iterator)
 
int dict_size (const struct dictionary *dict)
 

Macro Definition Documentation

◆ ALL_DICT_SYMBOLS

#define ALL_DICT_SYMBOLS (   dict,
  iter,
  sym 
)
Value:
for ((sym) = dict_iterator_first ((dict), &(iter)); \
(sym); \
(sym) = dict_iterator_next (&(iter)))
struct symbol * dict_iterator_next(struct dict_iterator *iterator)
Definition: dictionary.c:516
struct symbol * dict_iterator_first(const struct dictionary *dict, struct dict_iterator *iterator)
Definition: dictionary.c:506

Definition at line 162 of file dictionary.h.

Referenced by dump_symtab_1(), end_symtab_with_blockvector(), finish_block_internal(), and objfile_relocate1().

Function Documentation

◆ dict_add_pending()

void dict_add_pending ( struct dictionary dict,
const struct pending symbol_list 
)

◆ dict_add_symbol()

void dict_add_symbol ( struct dictionary dict,
struct symbol sym 
)

Definition at line 481 of file dictionary.c.

References add_symbol(), and DICT_VECTOR.

Referenced by add_symbol(), and dict_add_pending().

◆ dict_create_hashed()

struct dictionary* dict_create_hashed ( struct obstack *  obstack,
enum language  language,
const struct pending symbol_list 
)

◆ dict_create_hashed_expandable()

struct dictionary* dict_create_hashed_expandable ( enum language  language)

◆ dict_create_linear()

struct dictionary* dict_create_linear ( struct obstack *  obstack,
enum language  language,
const struct pending symbol_list 
)

◆ dict_create_linear_expandable()

struct dictionary* dict_create_linear_expandable ( enum language  language)

◆ dict_empty()

int dict_empty ( struct dictionary dict)

Definition at line 551 of file dictionary.c.

References dict_iterator::dict, and dict_iterator_first().

◆ dict_free()

void dict_free ( struct dictionary dict)

Definition at line 473 of file dictionary.c.

References DICT_VECTOR, and free().

◆ dict_iter_match_first()

struct symbol* dict_iter_match_first ( const struct dictionary dict,
const lookup_name_info name,
struct dict_iterator iterator 
)

Definition at line 523 of file dictionary.c.

References DICT_VECTOR, and name.

Referenced by block_iter_match_first(), block_iter_match_step(), and block_lookup_symbol_primary().

◆ dict_iter_match_next()

struct symbol* dict_iter_match_next ( const lookup_name_info name,
struct dict_iterator iterator 
)

◆ dict_iterator_first()

struct symbol* dict_iterator_first ( const struct dictionary dict,
struct dict_iterator iterator 
)

Definition at line 506 of file dictionary.c.

References DICT_VECTOR.

Referenced by block_iterator_first(), block_iterator_step(), and dict_empty().

◆ dict_iterator_next()

struct symbol* dict_iterator_next ( struct dict_iterator iterator)

Definition at line 516 of file dictionary.c.

References DICT_ITERATOR_DICT, and DICT_VECTOR.

Referenced by block_iterator_next(), and block_iterator_step().

◆ dict_size()

int dict_size ( const struct dictionary dict)

Definition at line 539 of file dictionary.c.

References DICT_VECTOR.

Referenced by dump_symtab_1().