* symtab.c (do_free_search_symbols_cleanup): Change arg to,
authorDoug Evans <dje@google.com>
Thu, 1 Aug 2013 23:47:02 +0000 (23:47 +0000)
committerDoug Evans <dje@google.com>
Thu, 1 Aug 2013 23:47:02 +0000 (23:47 +0000)
commitb52109bc0c37024e7ea36aa4f7c47f1c52cffed7
treea26a4e50707f7ab91b749ab87ce568a3d19c8b65
parentec94af83262061ee559ed6a7d575dd6d81cda3af
* symtab.c (do_free_search_symbols_cleanup): Change arg to,
effectively, struct symbol_search **.
(make_cleanup_free_search_symbols): Change arg to struct
symbol_search **.  All callers updated.
(compare_search_syms): Compare symtab file name and block as well.
(search_symbols_equal): New function.
(sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
New args new_head, new_tail.  Result is now void.  Remove dups after
sorting the symbols.
(search_symbols): Sort all found symbols once, after all have been
found, and remove duplicates.  Simplify cleanup tracking of result.
* symtab.h (make_cleanup_free_search_symbols): Update prototype.
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h