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.
This commit is contained in:
Jan Kratochvil 2011-04-09 19:35:11 +00:00
parent 9f973f2842
commit e8930875fb
3 changed files with 28 additions and 11 deletions

View file

@ -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. */