aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-08-01 23:47:02 +0000
committerDoug Evans <dje@google.com>2013-08-01 23:47:02 +0000
commitb52109bc0c37024e7ea36aa4f7c47f1c52cffed7 (patch)
treea26a4e50707f7ab91b749ab87ce568a3d19c8b65 /gdb/symtab.h
parentec94af83262061ee559ed6a7d575dd6d81cda3af (diff)
downloadgdb-b52109bc0c37024e7ea36aa4f7c47f1c52cffed7.zip
gdb-b52109bc0c37024e7ea36aa4f7c47f1c52cffed7.tar.gz
gdb-b52109bc0c37024e7ea36aa4f7c47f1c52cffed7.tar.bz2
* 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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index a95a9cf..32897aa 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1292,7 +1292,7 @@ struct symbol_search
/* Information describing what was found.
- If symtab abd symbol are NOT NULL, then information was found
+ If symtab and symbol are NOT NULL, then information was found
for this match. */
struct symtab *symtab;
struct symbol *symbol;
@@ -1309,7 +1309,7 @@ extern void search_symbols (char *, enum search_domain, int, char **,
struct symbol_search **);
extern void free_search_symbols (struct symbol_search *);
extern struct cleanup *make_cleanup_free_search_symbols (struct symbol_search
- *);
+ **);
/* The name of the ``main'' function.
FIXME: cagney/2001-03-20: Can't make main_name() const since some