From: David Taylor Date: Tue, 27 Feb 2001 21:57:09 +0000 (+0000) Subject: fix off by one error in test for error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=993f3aa5bc92a1413f58f340598a920434f932c0;p=binutils-gdb.git fix off by one error in test for error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 72f9c9db58d..fcd0eda17e2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 27 16:56:13 2001 David Taylor + + * symtab.c (search_symbols): Fix off by one error in test for + error. + 2001-02-23 Andrew Cagney * config/sparc/sp64linux.mt: New file. @@ -538,6 +543,7 @@ Wed Feb 7 19:41:21 2001 Andrew Cagney (fill_fpregset): Likewise. (supply_fpregset): Likewise. +>>>>>>> 1.973 Tue Feb 6 11:58:57 2001 David Taylor * valops.c (value_cast): If casting a scalar to a pointer, do not diff --git a/gdb/symtab.c b/gdb/symtab.c index 88155b01445..50a0ef6ea07 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)];