X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fdictionary.h;h=9d277078a599e0064cba98cf69a29b07b8e88d4a;hb=b16f7544121b8d4f0f98e0ff121aabe8a1509b93;hp=f7d30350ed7ed4a9c78a8705be120b125aead55a;hpb=c4d840bdd6f9e19843bd35835cc08e992fe5e1db;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/dictionary.h b/gdb/dictionary.h index f7d3035..9d27707 100644 --- a/gdb/dictionary.h +++ b/gdb/dictionary.h @@ -1,6 +1,6 @@ /* Routines for name->symbol lookups in GDB. - Copyright (C) 2003, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. + Copyright (C) 2003-2014 Free Software Foundation, Inc. Contributed by David Carlton and by Kealia, Inc. @@ -23,6 +23,8 @@ #ifndef DICTIONARY_H #define DICTIONARY_H +#include "symfile.h" + /* An opaque type for dictionaries; only dictionary.c should know about its innards. */ @@ -83,6 +85,11 @@ extern void dict_free (struct dictionary *dict); extern void dict_add_symbol (struct dictionary *dict, struct symbol *sym); +/* Utility to add a list of symbols to a dictionary. */ + +extern void dict_add_pending (struct dictionary *dict, + const struct pending *symbol_list); + /* Is the dictionary empty? */ extern int dict_empty (struct dictionary *dict); @@ -142,8 +149,7 @@ extern struct symbol *dict_iter_name_next (const char *name, extern struct symbol *dict_iter_match_first (const struct dictionary *dict, const char *name, - int (*compare) (const char*, - const char *), + symbol_compare_ftype *compare, struct dict_iterator *iterator); /* Advance ITERATOR to point at the next symbol in DICT whose @@ -151,12 +157,11 @@ extern struct symbol *dict_iter_match_first (const struct dictionary *dict, dict_iter_match_first), or NULL if there are no more such symbols. Don't call this if you've previously received NULL from dict_iterator_match_first or dict_iterator_match_next on this - iteration. And don't call it unless ITERATOR was created by a + iteration. And don't call it unless ITERATOR was created by a previous call to dict_iter_match_first with the same NAME and COMPARE. */ extern struct symbol *dict_iter_match_next (const char *name, - int (*compare) (const char*, - const char *), + symbol_compare_ftype *compare, struct dict_iterator *iterator); /* Return some notion of the size of the dictionary: the number of