Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1219)

Side by Side Diff: gdb/dictionary.h

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/dicos-tdep.c ('k') | gdb/dictionary.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Routines for name->symbol lookups in GDB. 1 /* Routines for name->symbol lookups in GDB.
2 2
3 Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc. 3 Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc.
4 4
5 Contributed by David Carlton <carlton@bactrian.org> and by Kealia, 5 Contributed by David Carlton <carlton@bactrian.org> and by Kealia,
6 Inc. 6 Inc.
7 7
8 This file is part of GDB. 8 This file is part of GDB.
9 9
10 This program is free software; you can redistribute it and/or modify 10 This program is free software; you can redistribute it and/or modify
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 /* Free the memory used by a dictionary that's not on an obstack. (If 79 /* Free the memory used by a dictionary that's not on an obstack. (If
80 any.) */ 80 any.) */
81 81
82 extern void dict_free (struct dictionary *dict); 82 extern void dict_free (struct dictionary *dict);
83 83
84 /* Add a symbol to an expandable dictionary. */ 84 /* Add a symbol to an expandable dictionary. */
85 85
86 extern void dict_add_symbol (struct dictionary *dict, struct symbol *sym); 86 extern void dict_add_symbol (struct dictionary *dict, struct symbol *sym);
87 87
88 /* Utility to add a list of symbols to a dictionary. */
89
90 extern void dict_add_pending (struct dictionary *dict,
91 const struct pending *symbol_list);
92
88 /* Is the dictionary empty? */ 93 /* Is the dictionary empty? */
89 94
90 extern int dict_empty (struct dictionary *dict); 95 extern int dict_empty (struct dictionary *dict);
91 96
92 /* A type containing data that is used when iterating over all symbols 97 /* A type containing data that is used when iterating over all symbols
93 in a dictionary. Don't ever look at its innards; this type would 98 in a dictionary. Don't ever look at its innards; this type would
94 be opaque if we didn't need to be able to allocate it on the 99 be opaque if we didn't need to be able to allocate it on the
95 stack. */ 100 stack. */
96 101
97 struct dict_iterator 102 struct dict_iterator
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 175
171 It's implemented as a single loop, so you can terminate the loop 176 It's implemented as a single loop, so you can terminate the loop
172 early by a break if you desire. */ 177 early by a break if you desire. */
173 178
174 #define ALL_DICT_SYMBOLS(dict, iter, sym) \ 179 #define ALL_DICT_SYMBOLS(dict, iter, sym) \
175 for ((sym) = dict_iterator_first ((dict), &(iter)); \ 180 for ((sym) = dict_iterator_first ((dict), &(iter)); \
176 (sym); \ 181 (sym); \
177 (sym) = dict_iterator_next (&(iter))) 182 (sym) = dict_iterator_next (&(iter)))
178 183
179 #endif /* DICTIONARY_H */ 184 #endif /* DICTIONARY_H */
OLDNEW
« no previous file with comments | « gdb/dicos-tdep.c ('k') | gdb/dictionary.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698