aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-04-04 14:10:12 +0000
committerTom Tromey <tromey@redhat.com>2011-04-04 14:10:12 +0000
commit8903c50da7496b9e04c3db262ec7020a206cab79 (patch)
tree95114b313de18eed3a6913afa8fb17f88b761c29 /gdb/symtab.h
parent1e99536ae5e3e54a10f35e8c915d3bd6c44140bd (diff)
downloadgdb-8903c50da7496b9e04c3db262ec7020a206cab79.zip
gdb-8903c50da7496b9e04c3db262ec7020a206cab79.tar.gz
gdb-8903c50da7496b9e04c3db262ec7020a206cab79.tar.bz2
* symtab.h (domain_enum): Split in two...
(enum search_domain): New. (search_symbols): Update. * symtab.c (print_symbol_info, symtab_symbol_info): Remove redundant declarations. (search_symbols): Change 'kind' argument to search_domain. Update. (print_symbol_info): Likewise. (symtab_symbol_info): Likewise. * symfile.h (struct quick_symbol_functions) <pre_expand_symtabs_matching>: Change type of 'kind' argument. <expand_symtabs_matching>: Likewise. * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update. (expand_symtabs_matching_via_partial): Update. * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update. (dw2_expand_symtabs_for_function): Update. * block.h: Moved anonymous enum... * defs.h (enum block_enum): ... here. Now named.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index abe5e86..a1c61f0 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -395,11 +395,13 @@ typedef enum domain_enum_tag
/* LABEL_DOMAIN may be used for names of labels (for gotos). */
- LABEL_DOMAIN,
+ LABEL_DOMAIN
+} domain_enum;
- /* Searching domains. These overlap with VAR_DOMAIN, providing
- some granularity with the search_symbols function. */
+/* Searching domains, used for `search_symbols'. */
+enum search_domain
+{
/* Everything in VAR_DOMAIN minus FUNCTIONS_DOMAIN and
TYPES_DOMAIN. */
VARIABLES_DOMAIN,
@@ -409,8 +411,7 @@ typedef enum domain_enum_tag
/* All defined types */
TYPES_DOMAIN
-}
-domain_enum;
+};
/* An address-class says where to find the value of a symbol. */
@@ -1263,7 +1264,7 @@ struct symbol_search
struct symbol_search *next;
};
-extern void search_symbols (char *, domain_enum, int, char **,
+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