diff options
author | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-06-09 04:22:24 +0000 |
---|---|---|
committer | Paul N. Hilfinger <hilfinger@adacore.com> | 2010-06-09 04:22:24 +0000 |
commit | 372bfdc70ad10f60c4903bdbf75940ad52dcc857 (patch) | |
tree | 9a8d9ebd2b3fcd58b7a9817574ad8df4abec6b0a | |
parent | 5055b03495df73f540db3aac929df5c3c917c0a2 (diff) | |
download | gdb-372bfdc70ad10f60c4903bdbf75940ad52dcc857.tar.gz |
Trivial correction to two comments in dictionary.h.
Changelog:
* dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dictionary.h | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc1167dd698..c64c55493cf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-06-08 Paul Hilfinger <hilfingr@adacore.com> + + * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to + SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments. + 2010-06-08 Michael Snyder <msnyder@vmware.com> * remote.c (remote_close): Set inferior_ptid to null_ptid. diff --git a/gdb/dictionary.h b/gdb/dictionary.h index 2d37405dd9a..2242a791a18 100644 --- a/gdb/dictionary.h +++ b/gdb/dictionary.h @@ -116,7 +116,7 @@ extern struct symbol *dict_iterator_first (const struct dictionary *dict, extern struct symbol *dict_iterator_next (struct dict_iterator *iterator); /* Initialize ITERATOR to point at the first symbol in DICT whose - SYMBOL_BEST_NAME is NAME (as tested using strcmp_iw), and return + SYMBOL_SEARCH_NAME is NAME (as tested using strcmp_iw), and return that first symbol, or NULL if there are no such symbols. */ extern struct symbol *dict_iter_name_first (const struct dictionary *dict, @@ -124,7 +124,7 @@ extern struct symbol *dict_iter_name_first (const struct dictionary *dict, struct dict_iterator *iterator); /* Advance ITERATOR to point at the next symbol in DICT whose - SYMBOL_BEST_NAME is NAME (as tested using strcmp_iw), or NULL if + SYMBOL_SEARCH_NAME is NAME (as tested using strcmp_iw), or NULL if there are no more such symbols. Don't call this if you've previously received NULL from dict_iterator_first or dict_iterator_next on this iteration. And don't call it unless |