aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2001-02-27 21:57:09 +0000
committerDavid Taylor <taylor@redhat.com>2001-02-27 21:57:09 +0000
commit993f3aa5bc92a1413f58f340598a920434f932c0 (patch)
treee32ebfcbd0017bfe5cea26b22d6071c816f81eed /gdb/symtab.c
parent920581c57e08ffff3fb22f70759f47eaf9b509cc (diff)
downloadgdb-993f3aa5bc92a1413f58f340598a920434f932c0.zip
gdb-993f3aa5bc92a1413f58f340598a920434f932c0.tar.gz
gdb-993f3aa5bc92a1413f58f340598a920434f932c0.tar.bz2
fix off by one error in test for error.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 88155b0..50a0ef6 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2348,7 +2348,7 @@ search_symbols (char *regexp, namespace_enum kind, int nfiles, char *files[],
struct symbol_search *tail;
struct cleanup *old_chain = NULL;
- if (kind < LABEL_NAMESPACE)
+ if (kind < VARIABLES_NAMESPACE)
error ("must search on specific namespace");
ourtype = types[(int) (kind - VARIABLES_NAMESPACE)];