diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-09 19:35:11 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-04-09 19:35:11 +0000 |
commit | e8930875fbb0df5bfce42d9a895433ddb02fff8f (patch) | |
tree | 3968c7b202f604de2654c9f099583c1e83cff628 /gdb/symtab.h | |
parent | 9f973f284255fa36ee23ac15700037e6f19a1fce (diff) | |
download | gdb-e8930875fbb0df5bfce42d9a895433ddb02fff8f.zip gdb-e8930875fbb0df5bfce42d9a895433ddb02fff8f.tar.gz gdb-e8930875fbb0df5bfce42d9a895433ddb02fff8f.tar.bz2 |
gdb/
Code cleanup.
* symtab.c (search_symbols): Reorder the KIND description in the
function comment. Remove the unused 4th element of types, types2,
types3 and types4. New gdb_assert on KIND.
(symtab_symbol_info): Remove the unused 4th element of classnames.
New gdb_assert on KIND.
* symtab.h (enum search_domain): New warning in the enum comment.
Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
TYPES_DOMAIN.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r-- | gdb/symtab.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h index 4913e6c..72f9287 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -398,19 +398,20 @@ typedef enum domain_enum_tag LABEL_DOMAIN } domain_enum; -/* Searching domains, used for `search_symbols'. */ +/* Searching domains, used for `search_symbols'. Element numbers are + hardcoded in GDB, check all enum uses before changing it. */ enum search_domain { /* Everything in VAR_DOMAIN minus FUNCTIONS_DOMAIN and TYPES_DOMAIN. */ - VARIABLES_DOMAIN, + VARIABLES_DOMAIN = 0, /* All functions -- for some reason not methods, though. */ - FUNCTIONS_DOMAIN, + FUNCTIONS_DOMAIN = 1, /* All defined types */ - TYPES_DOMAIN + TYPES_DOMAIN = 2, }; /* An address-class says where to find the value of a symbol. */ |