From bd2e94cec8bb79e117389f7800ccd6b65407f5df Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Oct 2008 17:25:22 +0000 Subject: [PATCH] * symtab.c (search_symbols): Update. * symtab.h (domain_enum_tag) : Remove. --- gdb/ChangeLog | 5 +++++ gdb/symtab.c | 7 ++----- gdb/symtab.h | 9 +++------ 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f17fa59704d..39c8c1058e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-10-01 Tom Tromey + + * symtab.c (search_symbols): Update. + * symtab.h (domain_enum_tag) : Remove. + 2008-10-01 Tom Tromey * symfile.c (syms_from_objfile): Update. diff --git a/gdb/symtab.c b/gdb/symtab.c index 1cbd6e0dd1f..3af3e8a0012 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2989,7 +2989,6 @@ sort_search_symbols (struct symbol_search *prevtail, int nfound) Only symbols of KIND are searched: FUNCTIONS_DOMAIN - search all functions TYPES_DOMAIN - search all type names - METHODS_DOMAIN - search all methods NOT IMPLEMENTED VARIABLES_DOMAIN - search all symbols, excluding functions, type names, and constants (enums) @@ -3130,8 +3129,7 @@ search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], && ((kind == VARIABLES_DOMAIN && SYMBOL_CLASS (*psym) != LOC_TYPEDEF && SYMBOL_CLASS (*psym) != LOC_BLOCK) || (kind == FUNCTIONS_DOMAIN && SYMBOL_CLASS (*psym) == LOC_BLOCK) - || (kind == TYPES_DOMAIN && SYMBOL_CLASS (*psym) == LOC_TYPEDEF) - || (kind == METHODS_DOMAIN && SYMBOL_CLASS (*psym) == LOC_BLOCK)))) + || (kind == TYPES_DOMAIN && SYMBOL_CLASS (*psym) == LOC_TYPEDEF)))) { PSYMTAB_TO_SYMTAB (ps); keep_going = 0; @@ -3206,8 +3204,7 @@ search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], && SYMBOL_CLASS (sym) != LOC_BLOCK && SYMBOL_CLASS (sym) != LOC_CONST) || (kind == FUNCTIONS_DOMAIN && SYMBOL_CLASS (sym) == LOC_BLOCK) - || (kind == TYPES_DOMAIN && SYMBOL_CLASS (sym) == LOC_TYPEDEF) - || (kind == METHODS_DOMAIN && SYMBOL_CLASS (sym) == LOC_BLOCK)))) + || (kind == TYPES_DOMAIN && SYMBOL_CLASS (sym) == LOC_TYPEDEF)))) { /* match */ psr = (struct symbol_search *) xmalloc (sizeof (struct symbol_search)); diff --git a/gdb/symtab.h b/gdb/symtab.h index c5ac732df98..a1dee4fceb0 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -386,18 +386,15 @@ typedef enum domain_enum_tag /* Searching domains. These overlap with VAR_DOMAIN, providing some granularity with the search_symbols function. */ - /* Everything in VAR_DOMAIN minus FUNCTIONS_-, TYPES_-, and - METHODS_DOMAIN */ + /* Everything in VAR_DOMAIN minus FUNCTIONS_DOMAIN and + TYPES_DOMAIN. */ VARIABLES_DOMAIN, /* All functions -- for some reason not methods, though. */ FUNCTIONS_DOMAIN, /* All defined types */ - TYPES_DOMAIN, - - /* All class methods -- why is this separated out? */ - METHODS_DOMAIN + TYPES_DOMAIN } domain_enum; -- 2.30.2